跳转至

minecraft:spell_effects

文档版本:1.21.0.24

Defines what mob effects to add and remove to the entity when adding this component.

架构

minecraft:spell_effects:
{
  array "add_effects" : opt
  {
    object "<any array element>" : opt
    {
      string "effect" : opt
      integer "duration" : opt
      integer "amplifier" : opt
      boolean "ambient" : opt
      boolean "visible" : opt
      boolean "display_on_screen_animation" : opt
    }
  }
  string "remove_effects" : opt
}
add_effectsarray
List of effects to add to this entity after adding this component.
add_effects
<any array element>object
<any array element>
effectstring
durationinteger
amplifierinteger
ambientboolean
visibleboolean
display_on_screen_animationboolean
remove_effectsstring
List of identifiers of effects to be removed from this entity after adding this component.