diff --git a/mods/bworld/blocks/cactus.json b/mods/bworld/blocks/cactus.json new file mode 100644 index 0000000..4f880d4 --- /dev/null +++ b/mods/bworld/blocks/cactus.json @@ -0,0 +1,21 @@ +{ + "format_version": 1, + "block": { + "id": "bworld:cactus", + "name": "Cactus", + "textures": { + "top": "bworld:cactus_top", + "bottom": "bworld:cactus_bottom", + "side": "bworld:cactus_side" + }, + "model": "bworld:cactus", + "item_model": "bworld:cactus", + "render_layer": "cutout", + "shape": [[1, 0, 1, 15, 16, 15]], + "mining": { + "toughness": 0.6 + }, + "drops": "bworld:cactus", + "place_on": ["bworld:sand", "bworld:cactus"] + } +} diff --git a/mods/bworld/models/cactus.json b/mods/bworld/models/cactus.json new file mode 100644 index 0000000..68bee81 --- /dev/null +++ b/mods/bworld/models/cactus.json @@ -0,0 +1,94 @@ +{ + "format_version": 1, + "model": { + "id": "bworld:cactus", + "elements": [ + { + "from": [ + 1, + 0, + 1 + ], + "to": [ + 15, + 16, + 15 + ], + "faces": { + "top": { + "texture": "#top", + "cullface": "top" + }, + "bottom": { + "texture": "#bottom", + "cullface": "bottom" + } + } + }, + { + "from": [ + 0, + 0, + 1 + ], + "to": [ + 16, + 16, + 15 + ], + "faces": { + "north": { + "texture": "#side", + "uv": [ + 0, + 0, + 16, + 16 + ] + }, + "south": { + "texture": "#side", + "uv": [ + 0, + 0, + 16, + 16 + ] + } + } + }, + { + "from": [ + 1, + 0, + 0 + ], + "to": [ + 15, + 16, + 16 + ], + "faces": { + "west": { + "texture": "#side", + "uv": [ + 0, + 0, + 16, + 16 + ] + }, + "east": { + "texture": "#side", + "uv": [ + 0, + 0, + 16, + 16 + ] + } + } + } + ] + } +} diff --git a/mods/bworld/textures/cactus_bottom.png b/mods/bworld/textures/cactus_bottom.png new file mode 100644 index 0000000..27dd148 Binary files /dev/null and b/mods/bworld/textures/cactus_bottom.png differ diff --git a/mods/bworld/textures/cactus_side.png b/mods/bworld/textures/cactus_side.png new file mode 100644 index 0000000..04ddc25 Binary files /dev/null and b/mods/bworld/textures/cactus_side.png differ diff --git a/mods/bworld/textures/cactus_top.png b/mods/bworld/textures/cactus_top.png new file mode 100644 index 0000000..ddae517 Binary files /dev/null and b/mods/bworld/textures/cactus_top.png differ