diff --git a/mods/bworld/blocks/keg.json b/mods/bworld/blocks/keg.json new file mode 100644 index 0000000..b6b1526 --- /dev/null +++ b/mods/bworld/blocks/keg.json @@ -0,0 +1,30 @@ +{ + "format_version": 1, + "block": { + "id": "bworld:keg", + "name": "Keg", + "model": "bworld:keg", + "textures": {}, + "item_model": "bworld:keg", + "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": 2 + }, + "drops": "bworld:keg", + "interactive": true, + "components": { + } + } +} diff --git a/mods/bworld/models/keg.json b/mods/bworld/models/keg.json new file mode 100644 index 0000000..68778de --- /dev/null +++ b/mods/bworld/models/keg.json @@ -0,0 +1,74 @@ +{ + "format_version": 1, + "model": { + "id": "bworld:keg", + "textures": { + "1": "bworld:keg_side", + "2": "bworld:keg_front", + "3": "bworld:keg_back", + "particle": "bworld:keg_side" + }, + "elements": [ + { + "from": [13, 0, 13], + "to": [16, 2, 16], + "faces": { + "north": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "east": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "south": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "west": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "top": { "texture": "#1", "uv": [0, 0, 3, 3] }, + "bottom": { "texture": "#3", "uv": [0, 0, 3, 3] } + } + }, + { + "from": [0, 0, 13], + "to": [3, 2, 16], + "faces": { + "north": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "east": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "south": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "west": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "top": { "texture": "#1", "uv": [0, 0, 3, 3] }, + "bottom": { "texture": "#3", "uv": [0, 0, 3, 3] } + } + }, + { + "from": [0, 0, 0], + "to": [3, 2, 3], + "faces": { + "north": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "east": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "south": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "west": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "top": { "texture": "#1", "uv": [0, 0, 3, 3] }, + "bottom": { "texture": "#3", "uv": [0, 0, 3, 3] } + } + }, + { + "from": [13, 0, 0], + "to": [16, 2, 3], + "faces": { + "north": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "east": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "south": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "west": { "texture": "#3", "uv": [0, 0, 3, 2] }, + "top": { "texture": "#1", "uv": [0, 0, 3, 3] }, + "bottom": { "texture": "#3", "uv": [0, 0, 3, 3] } + } + }, + { + "from": [0, 2, 0], + "to": [16, 16, 16], + "faces": { + "north": { "texture": "#2", "uv": [0, 2, 16, 16] }, + "east": { "texture": "#1", "uv": [0, 2, 16, 16] }, + "south": { "texture": "#3", "uv": [0, 2, 16, 16] }, + "west": { "texture": "#1", "uv": [0, 2, 16, 16] }, + "top": { "texture": "#1", "uv": [0, 0, 16, 16], "rotation": 90 }, + "bottom": { "texture": "#1", "uv": [0, 0, 16, 16], "rotation": 90 } + } + } + ] + } +} diff --git a/mods/bworld/textures/keg_back.png b/mods/bworld/textures/keg_back.png new file mode 100644 index 0000000..50127c6 Binary files /dev/null and b/mods/bworld/textures/keg_back.png differ diff --git a/mods/bworld/textures/keg_front.png b/mods/bworld/textures/keg_front.png new file mode 100644 index 0000000..99c4d96 Binary files /dev/null and b/mods/bworld/textures/keg_front.png differ diff --git a/mods/bworld/textures/keg_side.png b/mods/bworld/textures/keg_side.png new file mode 100644 index 0000000..29c56dc Binary files /dev/null and b/mods/bworld/textures/keg_side.png differ