minecraft:scheduler for you with a switch.Get GodCraftOverview
minecraft:scheduler is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Runs events at set times of day, like villagers going to work in the morning and to bed at night.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
scheduled_events | List | none | Events with filters for when they should fire; if several match, the first one listed wins. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:scheduler": {
"scheduled_events": {}
}
}