mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-11-30 14:33:28 +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(),
|
entity.getLocation().getWorld().playSound(entity.getLocation(),
|
||||||
CompatibleSound.ENTITY_PLAYER_ATTACK_SWEEP.getSound(), 1L, 1L);
|
CompatibleSound.ENTITY_PLAYER_ATTACK_SWEEP.getSound(), 1L, 1L);
|
||||||
Bukkit.getScheduler().runTask(plugin, () -> {
|
Bukkit.getScheduler().runTask(plugin, () -> {
|
||||||
entity.damage(99999999);
|
entity.damage(99999999, entity);
|
||||||
Methods.animate(farm.getLocation(), Material.IRON_SWORD);
|
Methods.animate(farm.getLocation(), Material.IRON_SWORD);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user