Refactor
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.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": "Use efficiency? Default is set to false.", "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" } } }
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user