add Effect
fun addEffect(entity: LivingEntity, effect: Holder<MobEffect>, duration: Int = 600, amplifier: Int = 0, showParticles: Boolean = true, ambient: Boolean = false)
Add a mob effect to a LivingEntity.
Parameters
entity
target entity
effect
holder of the MobEffect to apply
duration
effect duration in ticks (default 600)
amplifier
effect amplifier level (default 0)
show Particles
whether to show particles
ambient
whether effect is ambient