Files
minecraft-bedrock-json-schemas/behaviour/entities/1.16.100/components/minecraft.attack_cooldown.json
2020-11-18 10:02:20 +01:00

39 lines
1.2 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behaviour.entities.1.16.100.minecraft.attack_cooldown",
"type": "object",
"title": "Attack cooldown 1.16.100",
"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 (min and max).",
"title": "Attack cooldown time",
"oneOf": [
{
"type": "array",
"items": [
{
"type": "number",
"title": "Maximum"
},
{
"type": "number",
"title": "Maximum"
}
]
},
{
"type": "number"
}
]
}
}
}