DolphinsWithGills
ModrinthPrevents dryout and drowning damage for dolphins
165 downloads 4 followers updated 26mo 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);
}
Versions
No version history available. Use the Download button to get the latest from the source.

Comments 0
No comments yet. Be the first to share your thoughts.