#Can anyone tell me what is wrong with my code

1 messages · Page 1 of 1 (latest)

slow crane
#
    @EventHandler
    public void onDamage(EntityDamageEvent e){
        if (e.getEntity().getType() == EntityType.WARDEN){
            if (e.getCause() == EntityDamageEvent.DamageCause.ENTITY_ATTACK){
                PotionEffect effect = new PotionEffect(PotionEffectType.REGENERATION, 10, 2);
                effect.apply((LivingEntity) Warden);

            }



        }
    }
}```
pliant vector
#

We shouldn't need to tell you what's wrong with your code. You should be telling us this issue you're having and what you expect to happen

zinc latch