diff --git a/mods/bworld/blocks/chest.json b/mods/bworld/blocks/chest.json index 4747066..223e126 100644 --- a/mods/bworld/blocks/chest.json +++ b/mods/bworld/blocks/chest.json @@ -2,7 +2,22 @@ "format_version": 1, "block": { "id": "bworld:chest", - "textures": "bworld:oak_planks", + "textures": { "chest": "bworld:chest" }, + "model": "bworld:chest", + "item_model": "bworld:chest", + "render_layer": "cutout", + "states": [ + { + "name": "facing", + "bits": 2, + "default": 0 + } + ], + "variants": { + "facing=1": { "y": 90 }, + "facing=2": { "y": 180 }, + "facing=3": { "y": 270 } + }, "mining": { "toughness": 8, "tool": "axe" diff --git a/mods/bworld/models/chest.json b/mods/bworld/models/chest.json new file mode 100644 index 0000000..6ce49cf --- /dev/null +++ b/mods/bworld/models/chest.json @@ -0,0 +1,41 @@ +{ + "format_version": 1, + "model": { + "id": "bworld:chest", + "elements": [ + { + "from": [1, 0, 1], + "to": [15, 9, 15], + "faces": { + "bottom": { "texture": "#chest", "uv": [10.5, 4.75, 7, 8.25], "cullface": "bottom" }, + "north": { "texture": "#chest", "uv": [3.5, 8.5, 7, 10.75] }, + "south": { "texture": "#chest", "uv": [10.5, 8.5, 14, 10.75] }, + "west": { "texture": "#chest", "uv": [7, 8.5, 10.5, 10.75] }, + "east": { "texture": "#chest", "uv": [0, 8.5, 3.5, 10.75] } + } + }, + { + "from": [1, 9, 1], + "to": [15, 14, 15], + "faces": { + "top": { "texture": "#chest", "uv": [7, 3.5, 3.5, 0] }, + "north": { "texture": "#chest", "uv": [3.5, 3.5, 7, 4.75] }, + "south": { "texture": "#chest", "uv": [10.5, 3.5, 14, 4.75] }, + "west": { "texture": "#chest", "uv": [7, 3.5, 10.5, 4.75] }, + "east": { "texture": "#chest", "uv": [0, 3.5, 3.5, 4.75] } + } + }, + { + "from": [7, 7, 0], + "to": [9, 11, 1], + "faces": { + "top": { "texture": "#chest", "uv": [0.75, 0.25, 0.25, 0] }, + "bottom": { "texture": "#chest", "uv": [1.25, 0, 0.75, 0.25] }, + "north": { "texture": "#chest", "uv": [0.25, 0.25, 0.75, 1.25] }, + "west": { "texture": "#chest", "uv": [0.75, 0.25, 1, 1.25] }, + "east": { "texture": "#chest", "uv": [0, 0.25, 0.25, 1.25] } + } + } + ] + } +} diff --git a/mods/bworld/textures/chest.png b/mods/bworld/textures/chest.png new file mode 100644 index 0000000..9974f60 Binary files /dev/null and b/mods/bworld/textures/chest.png differ