2020-08-30 20:27:50 +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/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2021-01-11 02:44:06 +01:00
|
|
|
index 978062774c1db286bfb9b0ffdef19d880b1f249b..36ecdfce84141ac731b827e469ac842f5c666259 100644
|
2020-08-30 20:27:50 +02:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2021-01-11 02:44:06 +01:00
|
|
|
@@ -668,4 +668,9 @@ public class PaperWorldConfig {
|
2020-08-30 20:27:50 +02:00
|
|
|
maxLightningFlashDistance = 512; // Vanilla value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean zombiesTargetTurtleEggs = true;
|
|
|
|
+ private void zombiesTargetTurtleEggs() {
|
|
|
|
+ zombiesTargetTurtleEggs = getBoolean("zombies-target-turtle-eggs", zombiesTargetTurtleEggs);
|
|
|
|
+ }
|
|
|
|
}
|
2021-03-16 08:19:45 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/monster/EntityZombie.java b/src/main/java/net/minecraft/world/entity/monster/EntityZombie.java
|
|
|
|
index 3d8d4a43e6cd554b6f1eeafa1c8d43cef877139a..87acbdee03edf8bc35f4b3bcb9b82855ed4a3c33 100644
|
|
|
|
--- a/src/main/java/net/minecraft/world/entity/monster/EntityZombie.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/monster/EntityZombie.java
|
|
|
|
@@ -107,7 +107,7 @@ public class EntityZombie extends EntityMonster {
|
2020-08-30 20:27:50 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void initPathfinder() {
|
|
|
|
- this.goalSelector.a(4, new EntityZombie.a(this, 1.0D, 3));
|
|
|
|
+ if (world.paperConfig.zombiesTargetTurtleEggs) this.goalSelector.a(4, new EntityZombie.a(this, 1.0D, 3)); // Paper
|
|
|
|
this.goalSelector.a(8, new PathfinderGoalLookAtPlayer(this, EntityHuman.class, 8.0F));
|
|
|
|
this.goalSelector.a(8, new PathfinderGoalRandomLookaround(this));
|
|
|
|
this.m();
|