mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-11-27 13:05:11 +01:00
Have mobs damage themselves.
This commit is contained in:
parent
768bb02885
commit
1a52f644a8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user