Files
minecraft-bedrock-json-schemas/source/behavior/items/format/components/cooldown.json
DW623 d3a8c7a4a4 Add Item Examples (#182)
Add Examples to Item Components from MS-Learn Website
2023-08-17 20:04:39 +02:00

23 lines
765 B
JSON

{
"$id": "blockception.minecraft.behavior.items.minecraft:cooldown",
"title": "Cooldown",
"description": "Cool down time for a component. After you use an item it becomes unusable for the duration specified by the `cool down time` setting in this component.",
"type": "object",
"additionalProperties": false,
"required": ["category", "duration"],
"properties": {
"category": { "type": "string", "description": "The type of cool down for this item.", "title": "Category" },
"duration": {
"description": "The duration of time this item will spend cooling down before becoming usable again.",
"title": "Duration",
"type": "number"
}
},
"examples": [
{
"category" : "attack",
"duration" : 0.2
}
]
}