Answers for "spigot 1.16.3 how to set mob max health"

0

spigot deal damage

player.damage(damageToDeal);

// For dealing damage to entity convert it to Damageable
if (entity instanceof Damageable) {
	((Damageable) entity).damage(damageToDeal);
}
Posted by: Guest on May-22-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language