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

25 lines
896 B
JSON

{
"$id": "blockception.minecraft.behavior.items.minecraft:armor",
"title": "Armor",
"description": "The armor item component determines the amount of protection you have in your armor item.",
"type": "object",
"additionalProperties": false,
"required": ["protection", "texture_type"],
"properties": {
"protection": { "type": "integer", "description": "How much protection does the armor item have.", "title": "Protection", "minimum": 0 },
"texture_type": {
"type": "string",
"default": "gold",
"description": "Texture Type to apply for the armor. Note that Horse armor is restricted to leather, iron, gold, or diamond.",
"title": "Texture Type",
"enum": ["gold", "none", "leather", "chain", "iron", "diamond", "elytra", "turtle", "netherite"]
}
},
"examples": [
{
"protection": 5,
"texture_type" : "diamond"
}
]
}