Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/minecraft.attack_cooldown.json
DaanV2 9f4342e97c Moved
2021-10-08 12:59:03 +02:00

30 lines
1.0 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.attack_cooldown",
"type": "object",
"title": "Attack Cooldown 1.16.0",
"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",
"description": "Event to be runned when the cooldown is complete.",
"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": [
{ "type": "number", "title": "Maximum" },
{ "type": "number", "title": "Maximum" }
]
},
{ "type": "number" }
]
}
}
}