Files
minecraft-bedrock-json-schemas/source/behavior/entities/1.8.0/components/minecraft.timer.json

49 lines
2.0 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.timer",
"type": "object",
"title": "Timer 1.8.0",
"description": "Adds a timer after which an event will fire.",
"required": [],
"additionalProperties": false,
"properties": {
"looping": { "type": "boolean", "default": true, "description": "If true, the timer will restart every time after it fires", "title": "Looping" },
"randomInterval": {
"type": "boolean",
"default": true,
"description": "If true, the amount of time on the timer will be random between the min and max values specified in time",
"title": "Random Interval"
},
"time": {
"description": "Amount of time in seconds for the timer. Can be specified as a number or a pair of numbers (min and max). Incompatible with random_time_choices.",
"title": "Time",
"oneOf": [
{
"type": "array",
"default": [0.0, 0.0],
"items": [
{ "type": "number", "title": "A" },
{ "type": "number", "title": "B" }
],
"title": "TODO Title"
},
{ "type": "number", "default": 0 }
]
},
"time_down_event": { "description": "Event to fire when the time on the timer runs out", "title": "TODO", "$ref": "../types/event.json" },
"random_time_choices": {
"type": "array",
"default": [],
"description": "This is a list of objects, representing one value in seconds that can be picked before firing the event and an optional weight. Incompatible with time.",
"items": {
"properties": {
"weight": { "type": "integer", "description": "UNDOCUMENTATED: weight", "title": "Weight" },
"value": { "type": "integer", "description": "UNDOCUMENTATED: value", "title": "Value" }
},
"description": "UNDOCUMENTATED: random time choices",
"title": "Random Time Choices"
},
"title": "Random Time Choices"
}
}
}