Mob Effect¶
文档版本:1.21.50.25
A component that applies a mob effect to entities that get within range.
架构¶
mob_effect:
{
integer "cooldown_time" : opt
number "effect_range" : opt
integer "effect_time" : opt
filters "entity_filter"
effect "mob_effect"
}
cooldown_time
:integer- Time in seconds to wait between each application of the effect.
effect_range
:number- How close a hostile entity must be to have the mob effect applied.
effect_time
:integer- How long the applied mob effect lasts in seconds.
entity_filter
:filters- 一个过滤器组。Filter to use for conditions.
mob_effect
:effect- The mob effect that is applied to entities that enter this entities effect range.