Skip to content

Commit 606c768

Browse files
committed
Fixing up bp items
1 parent 92cd27f commit 606c768

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

source/behavior/items/format/components/icon.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@
99
},
1010
{
1111
"type": "object",
12-
"additionalProperties": true,
12+
"additionalProperties": false,
1313
"required": ["textures"],
1414
"properties": {
1515
"textures": {
1616
"title": "Textures",
1717
"description": "Contains key-value pairs of textures used by the item",
1818
"type": "object",
19-
"additionalProperties": true,
19+
"additionalProperties": {
20+
"type": "string",
21+
"title": "Texture",
22+
"description": "The key from the resource_pack/textures/item_texture.json `texture_data` object associated with the texture file Example: blaze_powder."
23+
},
2024
"required": ["default"],
2125
"properties": {
2226
"default": {

test/files/correct/data_bp/items/test2.item.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"components": {
1111
"minecraft:can_destroy_in_creative": { "value": false },
1212
"minecraft:max_stack_size": { "value": 64 },
13-
"minecraft:icon": { "value": "stick" },
13+
"minecraft:icon": { "textures": { "default": "stick" } },
1414
"minecraft:glint": { "value": true },
1515
"minecraft:damage": { "value": 2 },
1616
"minecraft:stacked_by_data": { "value": true },

0 commit comments

Comments
 (0)