mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2025-02-22 10:06:11 +00:00
100 lines
3.9 KiB
JSON
100 lines
3.9 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "1678203137",
|
|
"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"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"3571599612": {
|
|
"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"
|
|
]
|
|
}
|
|
},
|
|
"title": "Crafting Catalog Category",
|
|
"description": "Represents a collection of groups of items in a category..",
|
|
"type": "object",
|
|
"properties": {
|
|
"category_name": {
|
|
"title": "enum SharedTypes::v1_21_60::CraftingCatalogItemCategory",
|
|
"description": "The category that the items will go to. This is restricted to construction, nature, equipment, or items.",
|
|
"type": "string",
|
|
"enum": [
|
|
"construction",
|
|
"nature",
|
|
"equipment",
|
|
"items"
|
|
]
|
|
},
|
|
"groups": {
|
|
"title": "sequence container",
|
|
"description": "The groups that we are adding to a category.",
|
|
"type": "array",
|
|
"items": {
|
|
"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.",
|
|
"$ref": "#/definitions/3571599612"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"category_name",
|
|
"groups"
|
|
]
|
|
} |