2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id" : "blockception.minecraft.behavior.entities.minecraft.attack_cooldown" ,
2021-10-08 12:59:03 +02:00
"type" : "object" ,
2021-10-08 13:04:13 +02:00
"title" : "Attack Cooldown" ,
2021-10-08 12:59:03 +02:00
"description" : "Adds a cooldown to a mob. The intention of this cooldown is to be used to prevent the mob from attempting to aquire new attack targets." ,
"additionalProperties" : false ,
"properties" : {
"attack_cooldown_complete_event" : {
"$ref" : "../types/trigger.json" ,
2023-08-13 23:21:03 -07:00
"description" : "Event to be run when the cooldown is complete." ,
2021-10-08 12:59:03 +02:00
"title" : "Attack Cooldown Complete Event"
} ,
"attack_cooldown_time" : {
"default" : [ 0.0 , 1.0 ] ,
"description" : "Amount of time in seconds for the cooldown. Can be specified as a number or a pair of numbers (Minimum and max)." ,
"title" : "Attack Cooldown Time" ,
"oneOf" : [
{
"type" : "array" ,
"items" : [
2021-10-11 18:10:42 +02:00
{
"type" : "number" ,
"title" : "Maximum"
} ,
{
"type" : "number" ,
"title" : "Maximum"
}
2021-10-08 12:59:03 +02:00
]
} ,
2021-10-11 18:10:42 +02:00
{
"type" : "number"
}
2021-10-08 12:59:03 +02:00
]
}
}
}