minecraft:behavior.send_event for you with a switch.Get GodCraftOverview
minecraft:behavior.send_event is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets the mob cast a spell that fires events on another mob, one after another. The evoker uses it to turn blue sheep red.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
cast_duration | Decimal | "Total delay of the steps" | How long, in seconds, the whole casting takes. |
look_at_target | Boolean | "true" | If true, the mob faces the entity it sends events to. |
sequence | List | none | The list of events to send, each with its own delay and sound. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:behavior.send_event": {
"cast_duration": "Total delay of the steps",
"look_at_target": "true",
"sequence": {}
}
}