sheep now have 10000 health

This commit is contained in:
Charlie Wang 2013-06-30 12:47:11 -04:00
parent b22d2a625c
commit 200dc9b18d

View File

@ -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