Updated for 1.21.60 (#334)
* - Add crafting item catalogs * - Removed experimental warning for item visual * - Added renders_when_invisible entity component * - Removed experimental warning for liquid detection * - Added property inheritance to breedable * - Added min_looked_at_duration field to look_at component * - Added combine_parent_colors to breedable * - Update catalog file schema * - Split storage item components * - Added new entity filters * - Added surface opacity to water appearance biome component * - Remove actor_id loot table example as it is no longer the standard * - Add set_armor_trim trim loot table function * - Added match_tool loot table condition * - Added creature_spawn_probability component * - Added verticalFlySpeed to has_ability * - Update descriptions and default values * - Add base field to block_sounds * - Removed block sounds enum as creators can specify custom ones too * - Change default format version
This commit is contained in:
101
source/behavior/item_catalog/format/crafting_items_catalog.json
Normal file
101
source/behavior/item_catalog/format/crafting_items_catalog.json
Normal file
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.item_catalog.format.minecraft.crafting_items_catalog",
|
||||
"type": "object",
|
||||
"title": "Crafting Items Catalog",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"categories"
|
||||
],
|
||||
"definitions": {
|
||||
"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/group"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"categories": {
|
||||
"title": "Categories",
|
||||
"description": "",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "#/definitions/category"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user