resistance

fun LivingEntity.resistance(duration: Duration, amplifier: Int = 0)

Applies the Resistance effect to this entity.