Changelog
@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);
}
Files
DolphinsWithGills-1.0-SNAPSHOT.jar(4.08 KiB) Primary Download
Details
Licensed MIT
Published 6 months ago
Updated 6 months ago