1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-02-22 10:06:11 +00:00
bedrock-samples/metadata/json_schemas/Crafting Catalog Group v1.21.60.json
Mike Ammerlaan 43ca2795c2 v1.21.60.10
2025-02-11 09:25:02 -08:00

69 lines
2.7 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "3571599612",
"definitions": {
"2254328111": {
"title": "Crafting Catalog Group Icon",
"description": "The identifier of a group of items.",
"type": "object",
"properties": {
"icon": {
"description": "The item or block that represents the group.",
"$ref": "#/definitions/2438968950"
},
"name": {
"description": "A localization key representing the name of the group that starts with a namespace. The 'minecraft' namespace is reservered for the Vanilla game. Creating new group names starting with 'minecraft' run the risk of being overwritten in later updates.",
"type": "string",
"pattern": "^(?:.)+:(?:.)+$"
}
},
"required": [
"name"
]
},
"2438968950": {
"title": "Crafting Catalog Item",
"description": "A single item or block.",
"oneOf": [
{
"type": "string",
"pattern": "^(?:.)+:(?:.)+$"
},
{
"type": "object",
"properties": {
"name": {
"description": "The name of an item or block. A namespace for the item is required. You can optionally provide an aux value for items that use it at the end. Example: namespace:my_item:1",
"type": "string",
"pattern": "^(?:.)+:(?:.)+$"
}
},
"required": [
"name"
]
}
]
}
},
"title": "Crafting Catalog Group",
"description": "Represents a group of items. A group can be collapsible if it is provided with a group identifier, or added a set of loose items without an icon.",
"type": "object",
"properties": {
"group_identifier": {
"description": "Optional field to give an icon and name to a group. Otherwise the items are added as loose items.",
"$ref": "#/definitions/2254328111"
},
"items": {
"title": "sequence container",
"description": "The items to add to the group.",
"type": "array",
"items": {
"description": "A single item or block.",
"$ref": "#/definitions/2438968950"
}
}
},
"required": [
"items"
]
}