Block Documentation - add_mob_effect

add_mob_effect is an Event Response that applies a mob effect to a target.

Extra Parameters

add_mob_effect can use the following parameters

Name Default Value Type Description
amplifier 0 Integer The amplifier for the mob effect.
duration 0.0 Decimal The duration of the mob effect.
effect not set String The mob effect to apply.
target self Minecraft Filter The target context to execute against.

Example

"add_mob_effect":{
    "amplifier": 0,
    "duration" : 0.0,
    "effect" : "poison",
    "target" : "self"
}