2014-07-09 01:26:23 +02:00
|
|
|
From eed18c564df768143b11e068f8c8b94ccb0813ba Mon Sep 17 00:00:00 2001
|
2014-06-22 22:41:01 +02:00
|
|
|
From: Zach Brown <Zbob750@live.com>
|
|
|
|
Date: Wed, 21 May 2014 15:35:12 -0500
|
|
|
|
Subject: [PATCH] Configurable baby zombie movement speed
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityZombie.java b/src/main/java/net/minecraft/server/EntityZombie.java
|
2014-07-03 03:47:25 +02:00
|
|
|
index 6cb5b14..44d523c 100644
|
2014-06-22 22:41:01 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityZombie.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityZombie.java
|
|
|
|
@@ -13,11 +13,13 @@ import org.bukkit.event.entity.EntityCombustEvent;
|
|
|
|
import org.bukkit.event.entity.EntityTargetEvent;
|
|
|
|
//CraftBukkit end
|
|
|
|
|
2014-07-03 03:47:25 +02:00
|
|
|
+import org.github.paperspigot.PaperSpigotWorldConfig; // PaperSpigot
|
2014-06-22 22:41:01 +02:00
|
|
|
+
|
|
|
|
public class EntityZombie extends EntityMonster {
|
|
|
|
|
|
|
|
protected static final IAttribute bp = (new AttributeRanged("zombie.spawnReinforcements", 0.0D, 0.0D, 1.0D)).a("Spawn Reinforcements Chance");
|
|
|
|
private static final UUID bq = UUID.fromString("B9766B59-9566-4402-BC1F-2EE2A276D836");
|
|
|
|
- private static final AttributeModifier br = new AttributeModifier(bq, "Baby speed boost", 0.5D, 1);
|
2014-07-03 03:47:25 +02:00
|
|
|
+ private static final AttributeModifier br = new AttributeModifier(bq, "Baby speed boost", PaperSpigotWorldConfig.babyZombieMovementSpeed, 1); // PaperSpigot - Make baby zombie movement speed configurable
|
2014-06-22 22:41:01 +02:00
|
|
|
private final PathfinderGoalBreakDoor bs = new PathfinderGoalBreakDoor(this);
|
|
|
|
private int bt;
|
|
|
|
private boolean bu = false;
|
2014-07-03 03:47:25 +02:00
|
|
|
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
|
|
index 27be0a8..29863cd 100644
|
|
|
|
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
|
|
@@ -103,4 +103,10 @@ public class PaperSpigotWorldConfig
|
|
|
|
cactusMaxHeight = getInt( "max-growth-height.cactus", 3 );
|
|
|
|
reedMaxHeight = getInt ( "max-growth-height.reeds", 3 );
|
2014-06-22 22:41:01 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static double babyZombieMovementSpeed;
|
2014-07-03 03:47:25 +02:00
|
|
|
+ private void babyZombieMovementSpeed()
|
2014-06-22 22:41:01 +02:00
|
|
|
+ {
|
|
|
|
+ babyZombieMovementSpeed = getDouble( "baby-zombie-movement-speed", 0.5D );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|