From 200dc9b18d4b7e65b25f7f9d6e72511fbb305b55 Mon Sep 17 00:00:00 2001 From: Charlie Wang Date: Sun, 30 Jun 2013 12:47:11 -0400 Subject: [PATCH] sheep now have 10000 health --- src/gibstick/bukkit/discosheep/DiscoSheep.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gibstick/bukkit/discosheep/DiscoSheep.java b/src/gibstick/bukkit/discosheep/DiscoSheep.java index 37e58b8..39de769 100644 --- a/src/gibstick/bukkit/discosheep/DiscoSheep.java +++ b/src/gibstick/bukkit/discosheep/DiscoSheep.java @@ -22,7 +22,10 @@ public final class DiscoSheep extends JavaPlugin { } public void spawnSheep(World world, Location loc) { - sheepArray.add((Sheep) world.spawnEntity(loc, EntityType.SHEEP)); + Sheep newSheep = (Sheep) world.spawnEntity(loc, EntityType.SHEEP); + newSheep.setMaxHealth(10000); + newSheep.setHealth(10000); + sheepArray.add(newSheep); } // Spawn some number of sheep next to given player