51 lines
1.5 KiB
JSON
51 lines
1.5 KiB
JSON
{
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.scheduler",
|
|
"description": "fires off scheduled mob events at time of day events.",
|
|
"type": "object",
|
|
"title": "Scheduler",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"min_delay_secs": {
|
|
"type": "integer",
|
|
"description": "The minimum time in seconds before a scheduled event occurs",
|
|
"$comment": "UNDOCUMENTED",
|
|
"title": "Minimum Delay Secs",
|
|
"minimum": 0
|
|
},
|
|
"max_delay_secs": {
|
|
"type": "integer",
|
|
"description": "The maximum time in seconds before a scheduled event occurs",
|
|
"$comment": "UNDOCUMENTED",
|
|
"title": "Maximum Delay Secs",
|
|
"minimum": 0
|
|
},
|
|
"scheduled_events": {
|
|
"type": "array",
|
|
"description": "The list of triggers that fire when the conditions match the given filter criteria. If any filter criteria overlap the first defined event will be picked.",
|
|
"title": "Scheduled Events",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"description": "A filter and event pair. The event runs when the filter criteria succeeds",
|
|
"$comment": "UNDOCUMENTED",
|
|
"title": "Scheduled Events",
|
|
"properties": {
|
|
"filters": {
|
|
"$ref": "../../filters/filters.json"
|
|
},
|
|
"event": {
|
|
"$ref": "../types/event.json"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"examples": [
|
|
{
|
|
"min_delay_secs": 0,
|
|
"max_delay_secs": 0,
|
|
"scheduled_events": []
|
|
}
|
|
]
|
|
}
|