2020-11-01 17:22:42 +01:00
{
"$schema" : "http://json-schema.org/draft-07/schema" ,
2021-04-04 13:52:35 +02:00
"$id" : "blockception.minecraft.behavior.entities.1.8.0.minecraft.timer" ,
2020-11-01 17:22:42 +01:00
"type" : "object" ,
"title" : "Timer 1.8.0" ,
"description" : "Adds a timer after which an event will fire." ,
"required" : [ ] ,
"additionalProperties" : false ,
"properties" : {
2021-03-21 15:18:38 +01:00
"looping" : { "type" : "boolean" , "default" : true , "description" : "If true, the timer will restart every time after it fires" , "title" : "Looping" } ,
2020-11-01 17:22:42 +01:00
"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" : [
2021-03-21 15:18:38 +01:00
{ "type" : "number" , "title" : "A" } ,
{ "type" : "number" , "title" : "B" }
2020-11-01 17:22:42 +01:00
] ,
2021-03-21 15:18:38 +01:00
"title" : "TODO Title"
2020-11-01 17:22:42 +01:00
} ,
2021-03-21 15:18:38 +01:00
{ "type" : "number" , "default" : 0 }
2020-11-01 17:22:42 +01:00
]
} ,
2021-03-21 15:18:38 +01:00
"time_down_event" : { "description" : "Event to fire when the time on the timer runs out" , "title" : "TODO" , "$ref" : "../types/event.json" } ,
2020-11-01 17:22:42 +01:00
"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" : {
2021-03-21 15:18:38 +01:00
"weight" : { "type" : "integer" , "description" : "TODO description: weight" , "title" : "Weight" } ,
"value" : { "type" : "integer" , "description" : "TODO description: value" , "title" : "Value" }
2020-11-01 17:22:42 +01:00
} ,
"description" : "TODO description: random time choices" ,
"title" : "Random Time Choices"
} ,
"title" : "Random Time Choices"
}
}
}