2021-06-06 10:07:19 +00:00
{
"$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 ,
2021-07-01 16:42:21 +02:00
"description" : "If true, the amount of time on the timer will be random between the Minimum and Maximum values specified in time" ,
2021-06-06 10:07:19 +00:00
"title" : "Random Interval"
} ,
"time" : {
2021-07-01 16:42:21 +02:00
"description" : "Amount of time in seconds for the timer. Can be specified as a number or a pair of numbers (Minimum and max). Incompatible with random_time_choices." ,
2021-06-06 10:07:19 +00:00
"title" : "Time" ,
"oneOf" : [
{
"type" : "array" ,
"default" : [ 0.0 , 0.0 ] ,
"items" : [
{ "type" : "number" , "title" : "A" } ,
{ "type" : "number" , "title" : "B" }
2021-06-24 17:46:39 +02:00
]
2021-06-06 10:07:19 +00:00
} ,
{ "type" : "number" , "default" : 0 }
]
} ,
2021-06-24 17:46:39 +02:00
"time_down_event" : {
"description" : "Event to fire when the time on the timer runs out" ,
"title" : "Time Down Event" ,
"$ref" : "../types/event.json"
} ,
2021-06-06 10:07:19 +00: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." ,
2021-07-02 13:00:02 +02:00
"title" : "Random Time Choices" ,
2021-06-06 10:07:19 +00:00
"items" : {
2021-07-02 13:00:02 +02:00
"title" : "Random Time Choices" ,
"description" : "representing one value in seconds that can be picked before firing the event and an optional weight. Incompatible with time." ,
"type" : "object" ,
"additionalProperties" : false ,
2021-06-06 10:07:19 +00:00
"properties" : {
2021-07-02 13:05:57 +02:00
"weight" : {
"type" : "integer" ,
"description" : "The weight on how likely this section is to trigger" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Weight"
} ,
"value" : { "type" : "integer" , "description" : "UNDOCUMENTED: value" , "title" : "Value" }
2021-07-02 13:00:02 +02:00
}
}
2021-06-06 10:07:19 +00:00
}
}
}