minecraft:raid_trigger for you with a switch.Get GodCraftOverview
minecraft:raid_trigger is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Tries to start a raid at the entity's position, as happens when a player with Bad Omen enters a village.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
triggered_event | String | none | Event to run when a raid starts in the village. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:raid_trigger": {
"triggered_event": ""
}
}