A simple plugin that prevents dryout and drowning damage for dolphins
@EventHandler
public void onEntityDamage(EntityDamageEvent event) {
if (event.getEntityType() != EntityType.DOLPHIN) return;
DamageCause cause = event.getCause();
if (cause == DamageCause.DROWNING) event.setCancelled(true);
if (cause == DamageCause.DRYOUT) event.setCancelled(true);
}
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Compatibility
Minecraft: Java Edition
1.21
1.20.x
1.19.x
1.18.x
1.17.x
1.16.x
1.15.x
1.14.x
1.13.x
Platforms
Paper
Supported environments
Creators
Details
Licensed MIT
Published 6 months ago
Updated 6 months ago