diff options
author | Spottedleaf <[email protected]> | 2023-06-08 16:21:20 -0700 |
---|---|---|
committer | Spottedleaf <[email protected]> | 2023-06-08 16:21:20 -0700 |
commit | 902691b636614df08ba407823109b44be47f2277 (patch) | |
tree | d81004f9582a0eef33672278697d7fad798e84b2 /patches/server/0456-Add-zombie-targets-turtle-egg-config.patch | |
parent | 619d7c93d80c4fecf7b3db9f2750e44a0ce611d2 (diff) | |
download | Paper-902691b636614df08ba407823109b44be47f2277.tar.gz Paper-902691b636614df08ba407823109b44be47f2277.zip |
Apply last patch
Diffstat (limited to 'patches/server/0456-Add-zombie-targets-turtle-egg-config.patch')
-rw-r--r-- | patches/server/0456-Add-zombie-targets-turtle-egg-config.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0456-Add-zombie-targets-turtle-egg-config.patch b/patches/server/0456-Add-zombie-targets-turtle-egg-config.patch new file mode 100644 index 0000000000..e07acc412d --- /dev/null +++ b/patches/server/0456-Add-zombie-targets-turtle-egg-config.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: BillyGalbreath <[email protected]> +Date: Sun, 23 Aug 2020 15:47:34 +0200 +Subject: [PATCH] Add zombie targets turtle egg config + + +diff --git a/src/main/java/net/minecraft/world/entity/monster/Zombie.java b/src/main/java/net/minecraft/world/entity/monster/Zombie.java +index fae2c89900db222f7319b5675ef4b470beca251b..3ca308bb6668392a4f7ce1296e1ef6094060491f 100644 +--- a/src/main/java/net/minecraft/world/entity/monster/Zombie.java ++++ b/src/main/java/net/minecraft/world/entity/monster/Zombie.java +@@ -108,7 +108,7 @@ public class Zombie extends Monster { + + @Override + protected void registerGoals() { +- this.goalSelector.addGoal(4, new Zombie.ZombieAttackTurtleEggGoal(this, 1.0D, 3)); ++ if (this.level().paperConfig().entities.behavior.zombiesTargetTurtleEggs) this.goalSelector.addGoal(4, new Zombie.ZombieAttackTurtleEggGoal(this, 1.0D, 3)); // Paper + this.goalSelector.addGoal(8, new LookAtPlayerGoal(this, Player.class, 8.0F)); + this.goalSelector.addGoal(8, new RandomLookAroundGoal(this)); + this.addBehaviourGoals(); |