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
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed MIT
Published 7 months ago
Updated 7 months ago
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);
}