Skip to content

Commit 4a19fce

Browse files
committed
Adding menu_category to items
1 parent 9cfbf9a commit 4a19fce

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

source/behavior/items/format/minecraft.item.json

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,38 @@
2020
"description": "The identifier for this item. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla item.",
2121
"$ref": "../../../general/item/identifier.json"
2222
},
23-
"category": {
24-
"type": "string",
25-
"default": "",
26-
"description": "The category for this item. Categories are used to control high level properties of how the item is integrated into the bedrock engine, such as whether it can be used in slash commands.",
27-
"title": "Category",
28-
"examples": ["Nature", "Equipment", "Construction", "Items"]
29-
},
3023
"is_experimental": {
3124
"type": "boolean",
3225
"default": false,
3326
"description": "If this item is experimental, it will only be registered if the world is marked as experimental.",
3427
"title": "Is Experimental"
28+
},
29+
"menu_category": {
30+
"type": "object",
31+
"title": "Menu Category",
32+
"description": "The Creative Category that includes the specified item.",
33+
"additionalProperties": false,
34+
"properties": {
35+
"group": {
36+
"type": "string",
37+
"title": "Group",
38+
"maxLength": 256,
39+
"description": "The Creative Group that that includes the specified item. The group name is limited to 256 characters.",
40+
"examples": ["itemGroup.name.blaze"]
41+
},
42+
"category": {
43+
"type": "string",
44+
"title": "Category",
45+
"description": "The Creative Category that includes the specified item.",
46+
"examples": ["equipment"]
47+
},
48+
"is_hidden_in_commands": {
49+
"type": "boolean",
50+
"default": false,
51+
"title": "Is Hidden In Commands",
52+
"description": "Determines whether or not this item can be used with commands. Commands can use items by default"
53+
}
54+
}
3555
}
3656
}
3757
},

0 commit comments

Comments
 (0)