Have mobs damage themselves.

This commit is contained in:
Brianna 2020-04-09 06:04:58 -04:00
parent 768bb02885
commit 1a52f644a8

View File

@ -64,7 +64,7 @@ public class ModuleAutoButcher extends Module {
entity.getLocation().getWorld().playSound(entity.getLocation(),
CompatibleSound.ENTITY_PLAYER_ATTACK_SWEEP.getSound(), 1L, 1L);
Bukkit.getScheduler().runTask(plugin, () -> {
entity.damage(99999999);
entity.damage(99999999, entity);
Methods.animate(farm.getLocation(), Material.IRON_SWORD);
});
return;