Skip to content

Commit

Permalink
Fixing up bp items
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed May 11, 2024
1 parent 92cd27f commit 606c768
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions source/behavior/items/format/components/icon.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@
},
{
"type": "object",
"additionalProperties": true,
"additionalProperties": false,
"required": ["textures"],
"properties": {
"textures": {
"title": "Textures",
"description": "Contains key-value pairs of textures used by the item",
"type": "object",
"additionalProperties": true,
"additionalProperties": {
"type": "string",
"title": "Texture",
"description": "The key from the resource_pack/textures/item_texture.json `texture_data` object associated with the texture file Example: blaze_powder."
},
"required": ["default"],
"properties": {
"default": {
Expand Down
2 changes: 1 addition & 1 deletion test/files/correct/data_bp/items/test2.item.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": {
"minecraft:can_destroy_in_creative": { "value": false },
"minecraft:max_stack_size": { "value": 64 },
"minecraft:icon": { "value": "stick" },
"minecraft:icon": { "textures": { "default": "stick" } },
"minecraft:glint": { "value": true },
"minecraft:damage": { "value": 2 },
"minecraft:stacked_by_data": { "value": true },
Expand Down

0 comments on commit 606c768

Please sign in to comment.