removeEffect

fun removeEffect(entity: LivingEntity, effect: Holder<MobEffect>)

Remove a specific effect from a LivingEntity.

Parameters

entity

target entity

effect

holder of the MobEffect to remove