minecraft:spell_effects for you with a switch.Get GodCraftOverview
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
| Field | Type | Default | Description |
|---|---|---|---|
add_effects | List | none | Effects to give the entity, with their settings. |
remove_effects | String | none | Effects 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": ""
}
}