2022-06-07 20:42:18 +02:00
|
|
|
{
|
2022-07-20 21:25:32 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.items.minecraft:digger",
|
2022-06-07 20:42:18 +02:00
|
|
|
"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", "description": "Speed", "type": "number" },
|
|
|
|
|
"on_dig": { "type": "string", "title": "On Dig", "description": "Trigger for when you dig a block that isn't listed in destroy_speeds" },
|
|
|
|
|
"block": {
|
|
|
|
|
"title": "Block",
|
|
|
|
|
"oneOf": [
|
|
|
|
|
{ "type": "string", "description": "The block identifier" },
|
|
|
|
|
{
|
|
|
|
|
"type": "object",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Block descriptor",
|
|
|
|
|
"properties": {
|
|
|
|
|
"any_tag": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"title": "Any Block Tag",
|
|
|
|
|
"description": "The block tag",
|
|
|
|
|
"items": { "type": "string", "title": "Block Tag" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"on_dig": { "type": "string", "title": "On Dig", "description": "Trigger for when you dig a block that isn't listed in destroy_speeds" }
|
|
|
|
|
}
|
|
|
|
|
}
|