-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathcrafting_item_catalog.json
1 lines (1 loc) · 3.13 KB
/
crafting_item_catalog.json
1
{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.item_catalog.crafting_item_catalog","type":"object","title":"Crafting Item Catalog","description":"Used to define the creative inventory/recipe book","required":["format_version","minecraft:crafting_items_catalog"],"additionalProperties":false,"properties":{"format_version":{"$ref":"#/definitions/A"},"minecraft:crafting_items_catalog":{"$ref":"#/definitions/B"}},"definitions":{"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.21.60","examples":["1.21.50","1.20.80","1.20.40","1.19.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19,20|}.${3|2|0|}"}]},"B_category":{"title":"Category","description":"You can add new items to the existing categories.","type":"object","additionalProperties":false,"required":["category_name","groups"],"properties":{"category_name":{"title":"Category Name","description":"Determines which category this block/item will be placed under in the inventory and crafting table container screens.","enum":["construction","equipment","items","nature"]},"groups":{"title":"Groups","description":"Defines a new group which will be added to the category you specify at the end of all existing items/groups.","type":"array","items":{"$ref":"#/definitions/B_group"}}}},"B_group":{"title":"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","additionalProperties":false,"required":["items"],"properties":{"group_identifier":{"title":"Group Identifier","description":"Optional field to give an icon and name to a group. Otherwise the items are added as loose items. If there are two groups with the same name within a category, they will merge.","type":"object","additionalProperties":false,"required":["name"],"properties":{"icon":{"title":"Icon","description":"The item or block that represents the group.","type":"string"},"name":{"title":"Name","description":"The localization string that is display when you hover over your group name. The localization string needs to include the namespace.","type":"string","pattern":"^(?:.)+:(?:.)+$"}}},"items":{"title":"Items","description":"List of items to be added","type":"array","items":{"anyOf":[{"type":"string","description":"The name of an item or block. A namespace for the item is required","pattern":"^(?:.)+:(?:.)+$"},{"type":"object","description":"The name of an item or block. A namespace for the item is required","properties":{"name":{"description":"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"]}]}}}},"B":{"type":"object","title":"Crafting Items Catalog","additionalProperties":false,"required":["categories"],"properties":{"categories":{"title":"Categories","description":"","type":"array","minItems":1,"items":{"$ref":"#/definitions/B_category"}}}}}}