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"
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈