Files
minecraft-bedrock-json-schemas/source/behavior/items/format/components/digger.json
2024-03-29 10:05:56 +01:00

49 lines
1.4 KiB
JSON

{
"$id": "blockception.minecraft.behavior.items.minecraft:digger",
"title": "Digger",
"description": "Digger item. Component put on items that dig.",
"type": "object",
"additionalProperties": false,
"required": ["destroy_speeds"],
"properties": {
"use_efficiency": {
"title": "Use Efficiency",
"type": "boolean",
"description": "Toggles if the item will be used efficiently.",
"default": false
},
"destroy_speeds": {
"type": "array",
"title": "Destroy Speeds",
"description": "Destroy speed per block.",
"items": {
"title": "Destroy Speed",
"description": "Destroy speed per block.",
"type": "object",
"additionalProperties": false,
"properties": {
"speed": { "title": "Speed", "type": "number" },
"block": {
"title": "Block",
"oneOf": [
{ "type": "string", "description": "The block identifier." },
{
"type": "object",
"additionalProperties": false,
"properties": {
"tags": {
"type": "string",
"title": "Block Tags",
"description": "The block tags.",
"examples": ["query.any_tag( 'stone', 'metal' )"]
}
}
}
]
}
}
}
}
}
}