Files
minecraft-bedrock-json-schemas/source/general/item/descriptor.json
Piotr Brzozowski 4b7a779f2c Expand block reference schema (#121)
* Fix typo in module name
* Add sound_event schema and add it where appropriate
* Add more fields to block reference and fill some missing fields
* Use molang definition for tags
2022-10-06 13:03:40 +02:00

44 lines
1004 B
JSON

{
"$id": "blockception.minecraft.item.descriptor",
"oneOf": [
{
"$ref": "./identifier.json"
},
{
"$ref": "#/definitions/object_item_descriptor"
},
{
"type": "object",
"properties": {
"item": {
"oneOf": [
{
"$ref": "./identifier.json"
},
{
"$ref": "#/definitions/object_item_descriptor"
}
]
}
}
}
],
"definitions": {
"object_item_descriptor": {
"type": "object",
"properties": {
"tags": {
"$ref": "../../molang/string.json",
"description": "[UNDOCUMENTED] A Molang expression ran against item or block to match.",
"examples": ["query.any_tag('minecraft:is_tool')"]
},
"item_tag": {
"type": "string",
"description": "[UNDOCUMENTED] A tag to lookup item or block by.",
"examples": ["minecraft:is_tool"]
}
}
}
}
}