1. Wiki
  2. /Entities
  3. /minecraft:spell_effects

minecraft:spell_effects

Don't want to write this by hand? GodCraft sets minecraft:spell_effects for you with a switch.Get GodCraft

Overview

minecraft:spell_effects is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Gives or removes status effects on the entity at the moment this component is added. Put it in a component group to apply effects when an event fires.

Fields

FieldTypeDefaultDescription
add_effectsListnoneEffects to give the entity, with their settings.
remove_effectsStringnoneEffects to take away from the entity.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:spell_effects": {
    "add_effects": {},
    "remove_effects": ""
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more