跳转至

Mob Effect

文档版本:1.21.0.24

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"
  string "mob_effect" : opt
}
cooldown_timeinteger
Time in seconds to wait between each application of the effect.
effect_rangenumber
How close a hostile entity must be to have the mob effect applied.
effect_timeinteger
How long the applied mob effect lasts in seconds.
entity_filterfilters
一个过滤器组。Filter to use for conditions.
mob_effectstring
The mob effect that is applied to entities that enter this entities effect range.