2022-06-09 10:51:45 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
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
|
2024-01-24 15:57:53 +01:00
|
|
|
index 408cbb80df72cf67e5228a76b7f267281e1752ab..67aaa688b4db0c4304699fdd983730cdb4a68058 100644
|
2022-06-09 10:51:45 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/monster/Zombie.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/monster/Zombie.java
|
2023-09-22 06:40:51 +02:00
|
|
|
@@ -109,7 +109,7 @@ public class Zombie extends Monster {
|
2022-06-09 10:51:45 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void registerGoals() {
|
|
|
|
- this.goalSelector.addGoal(4, new Zombie.ZombieAttackTurtleEggGoal(this, 1.0D, 3));
|
2024-01-20 23:13:41 +01:00
|
|
|
+ if (this.level().paperConfig().entities.behavior.zombiesTargetTurtleEggs) this.goalSelector.addGoal(4, new Zombie.ZombieAttackTurtleEggGoal(this, 1.0D, 3)); // Paper - Add zombie targets turtle egg config
|
2022-06-09 10:51:45 +02:00
|
|
|
this.goalSelector.addGoal(8, new LookAtPlayerGoal(this, Player.class, 8.0F));
|
|
|
|
this.goalSelector.addGoal(8, new RandomLookAroundGoal(this));
|
|
|
|
this.addBehaviourGoals();
|