diff --git a/src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java b/src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java index 96946737..24a00574 100644 --- a/src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java +++ b/src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java @@ -23,6 +23,7 @@ import com.cleanroommc.modularui.utils.NumberFormat; import com.fouristhenumber.utilitiesinexcess.common.tileentities.TileEntityDrum; +import com.gtnewhorizon.gtnhlib.client.model.ModelISBRH; public class BlockDrum extends BlockContainer { @@ -139,6 +140,21 @@ public void breakBlock(World world, int x, int y, int z, Block block, int meta) super.breakBlock(world, x, y, z, block, meta); } + @Override + public int getRenderType() { + return ModelISBRH.JSON_ISBRH_ID; + } + + @Override + public boolean renderAsNormalBlock() { + return false; + } + + @Override + public boolean isOpaqueCube() { + return false; + } + public static class ItemBlockDrum extends ItemBlock implements IFluidContainerItem { public final int capacity; diff --git a/src/main/resources/assets/utilitiesinexcess/blockstates/drum.json b/src/main/resources/assets/utilitiesinexcess/blockstates/drum.json new file mode 100644 index 00000000..2c1899bf --- /dev/null +++ b/src/main/resources/assets/utilitiesinexcess/blockstates/drum.json @@ -0,0 +1,5 @@ +{ + "variants": { + "meta=0": { "model": "utilitiesinexcess:blocks/drum"} + } +} diff --git a/src/main/resources/assets/utilitiesinexcess/models/blocks/drum.json b/src/main/resources/assets/utilitiesinexcess/models/blocks/drum.json new file mode 100644 index 00000000..a406d5a9 --- /dev/null +++ b/src/main/resources/assets/utilitiesinexcess/models/blocks/drum.json @@ -0,0 +1,186 @@ +{ + "format_version": "1.21.11", + "credit": "Made with Blockbench", + "texture_size": [64, 64], + "textures": { + "1": "utilitiesinexcess:models/drum" + }, + "elements": [ + { + "name": "side", + "from": [2, 14, 3], + "to": [3, 16, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 14, 3]}, + "faces": { + "north": {"uv": [4, 9, 4.25, 9.5], "texture": "#1"}, + "east": {"uv": [7.5, 2.5, 10.25, 3], "texture": "#1"}, + "south": {"uv": [4.25, 9, 4.5, 9.5], "texture": "#1"}, + "west": {"uv": [7.5, 3, 10.25, 3.5], "texture": "#1"}, + "up": {"uv": [5.75, 11.25, 5.5, 8.5], "texture": "#1"}, + "down": {"uv": [6, 8.5, 5.75, 11.25], "texture": "#1"} + } + }, + { + "name": "side", + "from": [2, 14, 2], + "to": [13, 16, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 14, 2]}, + "faces": { + "north": {"uv": [7.5, 3.5, 10.25, 4], "texture": "#1"}, + "east": {"uv": [4.5, 9, 4.75, 9.5], "texture": "#1"}, + "south": {"uv": [7.5, 4, 10.25, 4.5], "texture": "#1"}, + "west": {"uv": [4.75, 9, 5, 9.5], "texture": "#1"}, + "up": {"uv": [8.75, 8.75, 6, 8.5], "texture": "#1"}, + "down": {"uv": [8.75, 8.75, 6, 9], "texture": "#1"} + } + }, + { + "name": "top", + "from": [3, 15, 3], + "to": [13, 15, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 14, 2]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0], "texture": "#1"}, + "east": {"uv": [0, 0, 2.5, 0], "texture": "#1"}, + "south": {"uv": [0, 0, 2.5, 0], "texture": "#1"}, + "west": {"uv": [0, 0, 2.5, 0], "texture": "#1"}, + "up": {"uv": [7.5, 2.5, 5, 0], "texture": "#1"}, + "down": {"uv": [7.5, 2.5, 5, 5], "texture": "#1"} + } + }, + { + "name": "side", + "from": [13, 14, 2], + "to": [14, 16, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 14, 2]}, + "faces": { + "north": {"uv": [5, 9, 5.25, 9.5], "texture": "#1"}, + "east": {"uv": [7.5, 4.5, 10.25, 5], "texture": "#1"}, + "south": {"uv": [5.25, 9, 5.5, 9.5], "texture": "#1"}, + "west": {"uv": [5, 7.5, 7.75, 8], "texture": "#1"}, + "up": {"uv": [9, 11.25, 8.75, 8.5], "texture": "#1"}, + "down": {"uv": [0.25, 9, 0, 11.75], "texture": "#1"} + } + }, + { + "name": "side", + "from": [3, 14, 13], + "to": [14, 16, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 14, 2]}, + "faces": { + "north": {"uv": [7.5, 5, 10.25, 5.5], "texture": "#1"}, + "east": {"uv": [6, 9.25, 6.25, 9.75], "texture": "#1"}, + "south": {"uv": [7.5, 5.5, 10.25, 6], "texture": "#1"}, + "west": {"uv": [6.25, 9.25, 6.5, 9.75], "texture": "#1"}, + "up": {"uv": [3, 9.25, 0.25, 9], "texture": "#1"}, + "down": {"uv": [8.75, 9, 6, 9.25], "texture": "#1"} + } + }, + { + "name": "middle", + "from": [3, 2, 3], + "to": [13, 14, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [4, 2, 3]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 3], "texture": "#1"}, + "east": {"uv": [2.5, 0, 5, 3], "texture": "#1"}, + "south": {"uv": [0, 3, 2.5, 6], "texture": "#1"}, + "west": {"uv": [2.5, 3, 5, 6], "texture": "#1"}, + "up": {"uv": [7.5, 7.5, 5, 5], "texture": "#1"}, + "down": {"uv": [2.5, 6, 0, 8.5], "texture": "#1"} + } + }, + { + "name": "sideW", + "from": [2, 0, 3], + "to": [3, 2, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 3]}, + "faces": { + "north": {"uv": [6.5, 9.25, 6.75, 9.75], "texture": "#1"}, + "east": {"uv": [7.5, 6, 10.25, 6.5], "texture": "#1"}, + "south": {"uv": [6.75, 9.25, 7, 9.75], "texture": "#1"}, + "west": {"uv": [7.5, 6.5, 10.25, 7], "texture": "#1"}, + "up": {"uv": [3.25, 11.75, 3, 9], "texture": "#1"}, + "down": {"uv": [3.5, 9, 3.25, 11.75], "texture": "#1"} + } + }, + { + "name": "sideN", + "from": [2, 0, 2], + "to": [13, 2, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 2]}, + "faces": { + "north": {"uv": [7.5, 7, 10.25, 7.5], "texture": "#1"}, + "east": {"uv": [7, 9.25, 7.25, 9.75], "texture": "#1"}, + "south": {"uv": [7.75, 7.5, 10.5, 8], "texture": "#1"}, + "west": {"uv": [7.25, 9.25, 7.5, 9.75], "texture": "#1"}, + "up": {"uv": [11.75, 8.75, 9, 8.5], "texture": "#1"}, + "down": {"uv": [11.75, 8.75, 9, 9], "texture": "#1"} + } + }, + { + "name": "bottom", + "from": [3, 1, 3], + "to": [13, 1, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 1, 2]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0], "texture": "#1"}, + "east": {"uv": [0, 0, 2.5, 0], "texture": "#1"}, + "south": {"uv": [0, 0, 2.5, 0], "texture": "#1"}, + "west": {"uv": [0, 0, 2.5, 0], "texture": "#1"}, + "up": {"uv": [5, 8.5, 2.5, 6], "texture": "#1"}, + "down": {"uv": [10, 0, 7.5, 2.5], "texture": "#1"} + } + }, + { + "name": "sideE", + "from": [13, 0, 2], + "to": [14, 2, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 2]}, + "faces": { + "north": {"uv": [7.5, 9.25, 7.75, 9.75], "texture": "#1"}, + "east": {"uv": [5, 8, 7.75, 8.5], "texture": "#1"}, + "south": {"uv": [7.75, 9.25, 8, 9.75], "texture": "#1"}, + "west": {"uv": [7.75, 8, 10.5, 8.5], "texture": "#1"}, + "up": {"uv": [3.75, 11.75, 3.5, 9], "texture": "#1"}, + "down": {"uv": [4, 9, 3.75, 11.75], "texture": "#1"} + } + }, + { + "name": "sideS", + "from": [3, 0, 13], + "to": [14, 2, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 2]}, + "faces": { + "north": {"uv": [0, 8.5, 2.75, 9], "texture": "#1"}, + "east": {"uv": [8, 9.25, 8.25, 9.75], "texture": "#1"}, + "south": {"uv": [2.75, 8.5, 5.5, 9], "texture": "#1"}, + "west": {"uv": [8.25, 9.25, 8.5, 9.75], "texture": "#1"}, + "up": {"uv": [11.75, 9.25, 9, 9], "texture": "#1"}, + "down": {"uv": [3, 9.25, 0.25, 9.5], "texture": "#1"} + } + } + ], + "groups": [ + { + "name": "group", + "origin": [8, 8, 8], + "color": 0, + "children": [ + { + "name": "top", + "origin": [8, 8, 8], + "color": 0, + "children": [0, 1, 2, 3, 4] + }, + 5, + { + "name": "bottom", + "origin": [8, 8, 8], + "color": 0, + "children": [6, 7, 8, 9, 10] + } + ] + } + ] +} diff --git a/src/main/resources/assets/utilitiesinexcess/textures/blocks/models/bedrockium_drum.png b/src/main/resources/assets/utilitiesinexcess/textures/blocks/models/bedrockium_drum.png new file mode 100644 index 00000000..31418993 Binary files /dev/null and b/src/main/resources/assets/utilitiesinexcess/textures/blocks/models/bedrockium_drum.png differ diff --git a/src/main/resources/assets/utilitiesinexcess/textures/blocks/models/drum.png b/src/main/resources/assets/utilitiesinexcess/textures/blocks/models/drum.png new file mode 100644 index 00000000..bdab8a3b Binary files /dev/null and b/src/main/resources/assets/utilitiesinexcess/textures/blocks/models/drum.png differ