Files
minecraft-bedrock-json-schemas/source/behavior/items/format/components/damage.json
Beltsazar fa09417d60 Fix item damage component and event object schema (#316)
* Fix item damage component
* Remove duplicate event schema and unnecessary pattern match
2024-10-08 13:37:06 +02:00

26 lines
628 B
JSON

{
"$id": "blockception.minecraft.behavior.items.minecraft:damage",
"title": "Damage",
"description": "The damage component determines how much extra damage the item does on attack.",
"oneOf": [
{
"type": "number",
"minimum": 1
},
{
"type": "object",
"additionalProperties": false,
"required": ["value"],
"properties": {
"value": {
"type": "number",
"title": "Value",
"description": "How much extra damage the item does, must be a positive number.",
"minimum": 1
}
}
}
],
"examples": [{ "value": 7 }]
}