DolphinsWithGills

DolphinsWithGills

Plugin

Prevents dryout and drowning damage for dolphins

Server Game Mechanics Mobs

56 downloads
3 followers
Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

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);
    }

Project members

DrBot

Member

Details

Licensed MIT
Published 6 months ago
Updated 6 months ago