From d9a7b261d10fe8b716362d36dca020c4bc63cb10 Mon Sep 17 00:00:00 2001 From: Mary Hopson Date: Sun, 8 Feb 2026 19:04:01 -0500 Subject: [PATCH] Drum model --- .../common/blocks/BlockDrum.java | 16 ++ .../utilitiesinexcess/blockstates/drum.json | 5 + .../utilitiesinexcess/models/blocks/drum.json | 186 ++++++++++++++++++ .../blocks/models/bedrockium_drum.png | Bin 0 -> 1334 bytes .../textures/blocks/models/drum.png | Bin 0 -> 1091 bytes 5 files changed, 207 insertions(+) create mode 100644 src/main/resources/assets/utilitiesinexcess/blockstates/drum.json create mode 100644 src/main/resources/assets/utilitiesinexcess/models/blocks/drum.json create mode 100644 src/main/resources/assets/utilitiesinexcess/textures/blocks/models/bedrockium_drum.png create mode 100644 src/main/resources/assets/utilitiesinexcess/textures/blocks/models/drum.png 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 0000000000000000000000000000000000000000..314189930dc6135fdcea896586523fe5372347fe GIT binary patch literal 1334 zcmV-61dhsHH2$iDNl0vmD zwVG;wq?A-I#(WdL?aQ#corRs<)#QWCPG;ZE&imfXdv9j9aOvWWhH7GexlfhL2NW@Q zZa`J0XVjlWz+C6&mr20BPugiN&CGUE5Z84`D zB99*`RjvNil~fAO6G5z^98<%nIoi{2sY zq|zjW%ES5`4X%+peQKz&vA(AN^z`m)>kvAKGCO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8Y!9gZ#ms>9Lo s1pEa60RR7i6_RxT000I_L_t&o00~uyAKy>c2><{907*qoM6N<$g2az!kpKVy literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..bdab8a3b5161b8fa489af36a0bc6205adc0c7c12 GIT binary patch literal 1091 zcmV-J1ibr+P)1jS5XXI|m5{C=2qKQ4^r=8R1Sk?uKmloZg#hBCpdcUtT}ntnpx_CRB6tT7X-FRt z4h6(D*B&=U|6|s&y<^?l-e~tHCAaIHz4Lt7p7Cz+{@w0W&A7OHMh#akD9-5Uhx&f} zr_@#@_i^u&{u~a6%Eo9kQZ9~u{=c?z{@?vOZ+CktB7OQtN)e=p{_)jS{Yi@AT8NxW zdGi__wep0H0P4I= z0kcgiM`I9YuK-TA8@=btMa_}TK0&(i}VBXHh zzDr@gGQ^@siBM?`pRMV%z8@VP&X+eNITATD5ppesFj$rHu@j+E9)Jvwl=9(|3+eFf zTN~3WmoDpL*V0QeF^!-NK%V2?g=b08&->rz?NT`@vArw7nhCx7&GP^FgJiNm-nT^rd)^tnn1Ezz@$;DK#W?TipH!0F=_z`ANKZowmAU5 zf$xjH3S3*is_Lu-X5p%&nBMi3%(3Y6lR9bvDdc_IJ^+l6YHvUrz}))g86LkTm6Onz zIpD_4jV#NS>HTbTfXYY{=76jQAn*FN(NoY@nL((V&kG2OkgU~U3Vd@wiao(D0#pQ= zP~}O<-hu1u>!pN6^*}UsXmOK*6$k|6Y$i;SKsO z>R8>?9Q6mU)R=FSEJERWK_O%;`W|xfXM8k-p1yq1!%#vSjQ3#kj=ruEq9;M@&X^rF zg{gzc(0Ij$P~;&A1L7SZ!e*$PZ-)?tts}lpamA~`oQ!~npM=d&HlwAafD*1waWEN~ z6QvFF-GHW2gm#e2SKUjIQe`NPRIW~nkRL@-Be};`IH002ov JPDHLkV1gR{1PK5D literal 0 HcmV?d00001