sheep now have 10000 health
This commit is contained in:
parent
b22d2a625c
commit
200dc9b18d
@ -22,7 +22,10 @@ public final class DiscoSheep extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void spawnSheep(World world, Location loc) {
|
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
|
// Spawn some number of sheep next to given player
|
||||||
|
Loading…
Reference in New Issue
Block a user