From 989dbdb583c85ea925cd4daa7b28d0714f211ac1 Mon Sep 17 00:00:00 2001 From: paulevsGitch Date: Fri, 25 Dec 2020 11:19:26 +0300 Subject: [PATCH] Ceiling jellyshroom variant --- .../blocks/BlockSmallJellyshroom.java | 2 +- .../blockstates/small_jellyshroom.json | 7 +- .../models/block/small_jellyshroom_ceil.json | 84 ++++++++++++++++++ .../block/jellyshroom_ceiling_stem.png | Bin 0 -> 1541 bytes 4 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/assets/betterend/models/block/small_jellyshroom_ceil.json create mode 100644 src/main/resources/assets/betterend/textures/block/jellyshroom_ceiling_stem.png diff --git a/src/main/java/ru/betterend/blocks/BlockSmallJellyshroom.java b/src/main/java/ru/betterend/blocks/BlockSmallJellyshroom.java index a28878bd..fb688def 100644 --- a/src/main/java/ru/betterend/blocks/BlockSmallJellyshroom.java +++ b/src/main/java/ru/betterend/blocks/BlockSmallJellyshroom.java @@ -61,7 +61,7 @@ public class BlockSmallJellyshroom extends BlockAttached implements IRenderTypea static { BOUNDING_SHAPES.put(Direction.UP, Block.createCuboidShape(3, 0, 3, 13, 16, 13)); - BOUNDING_SHAPES.put(Direction.DOWN, VoxelShapes.cuboid(0.0, 0.5, 0.0, 1.0, 1.0, 1.0)); + BOUNDING_SHAPES.put(Direction.DOWN, Block.createCuboidShape(3, 0, 3, 13, 16, 13)); BOUNDING_SHAPES.put(Direction.NORTH, VoxelShapes.cuboid(0.0, 0.0, 0.5, 1.0, 1.0, 1.0)); BOUNDING_SHAPES.put(Direction.SOUTH, VoxelShapes.cuboid(0.0, 0.0, 0.0, 1.0, 1.0, 0.5)); BOUNDING_SHAPES.put(Direction.WEST, VoxelShapes.cuboid(0.5, 0.0, 0.0, 1.0, 1.0, 1.0)); diff --git a/src/main/resources/assets/betterend/blockstates/small_jellyshroom.json b/src/main/resources/assets/betterend/blockstates/small_jellyshroom.json index 210a9636..650cc8c6 100644 --- a/src/main/resources/assets/betterend/blockstates/small_jellyshroom.json +++ b/src/main/resources/assets/betterend/blockstates/small_jellyshroom.json @@ -22,6 +22,11 @@ { "model": "betterend:block/small_jellyshroom_floor", "y": 180 }, { "model": "betterend:block/small_jellyshroom_floor", "y": 270 } ], - "facing=down": { "model": "betterend:block/glowing_pillar_leaves_up", "x": 180 } + "facing=down": [ + { "model": "betterend:block/small_jellyshroom_ceil" }, + { "model": "betterend:block/small_jellyshroom_ceil", "y": 90 }, + { "model": "betterend:block/small_jellyshroom_ceil", "y": 180 }, + { "model": "betterend:block/small_jellyshroom_ceil", "y": 270 } + ] } } diff --git a/src/main/resources/assets/betterend/models/block/small_jellyshroom_ceil.json b/src/main/resources/assets/betterend/models/block/small_jellyshroom_ceil.json new file mode 100644 index 00000000..43db448d --- /dev/null +++ b/src/main/resources/assets/betterend/models/block/small_jellyshroom_ceil.json @@ -0,0 +1,84 @@ +{ + "__comment": "Designed by Paulevs with Cubik Studio - https://cubik.studio", + "textures": { + "particle": "betterend:block/jellyshroom_ceiling_stem", + "texture": "betterend:block/jellyshroom_ceiling_stem", + "cap": "betterend:block/jellyshroom_cap" + }, + "elements": [ + { + "__comment": "PlaneX1", + "from": [ 2.375, 0, 2.375 ], + "to": [ 2.376, 16, 18.375 ], + "rotation": { "origin": [ 2.375, 0, 2.375 ], "axis": "y", "angle": 45 }, + "shade": false, + "faces": { + "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }, + "east": { "uv": [ 16, 0, 0, 16 ], "texture": "#texture" } + } + }, + { + "__comment": "PlaneX1", + "from": [ 13.75, 0, 2.25 ], + "to": [ 13.751, 16, 18.25 ], + "rotation": { "origin": [ 13.75, 0, 2.25 ], "axis": "y", "angle": -45 }, + "shade": false, + "faces": { + "west": { "uv": [ 16, 0, 0, 16 ], "texture": "#texture" }, + "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" } + } + }, + { + "__comment": "Box3", + "from": [ 2.5, 4.5, 2.5 ], + "to": [ 7.5, 7.5, 7.5 ], + "faces": { + "down": { "uv": [ 5, 0, 10, 5 ], "texture": "#cap" }, + "up": { "uv": [ 0, 0, 5, 5 ], "texture": "#cap" }, + "north": { "uv": [ 10, 0, 15, 3 ], "texture": "#cap" }, + "south": { "uv": [ 10, 0, 15, 3 ], "texture": "#cap" }, + "west": { "uv": [ 10, 0, 15, 3 ], "texture": "#cap" }, + "east": { "uv": [ 10, 0, 15, 3 ], "texture": "#cap" } + } + }, + { + "__comment": "Box3", + "from": [ 9, 12, 4 ], + "to": [ 12, 14, 7 ], + "faces": { + "down": { "uv": [ 3, 9, 6, 12 ], "texture": "#cap" }, + "up": { "uv": [ 0, 9, 3, 12 ], "texture": "#cap" }, + "north": { "uv": [ 6, 9, 9, 11 ], "texture": "#cap" }, + "south": { "uv": [ 6, 9, 9, 11 ], "texture": "#cap" }, + "west": { "uv": [ 6, 9, 9, 11 ], "texture": "#cap" }, + "east": { "uv": [ 6, 9, 9, 11 ], "texture": "#cap" } + } + }, + { + "__comment": "Box3", + "from": [ 9.5, 12, 9.5 ], + "to": [ 11.5, 13, 11.5 ], + "faces": { + "down": { "uv": [ 2, 12, 4, 14 ], "texture": "#cap" }, + "up": { "uv": [ 0, 12, 2, 14 ], "texture": "#cap" }, + "north": { "uv": [ 4, 12, 6, 13 ], "texture": "#cap" }, + "south": { "uv": [ 4, 12, 6, 13 ], "texture": "#cap" }, + "west": { "uv": [ 4, 12, 6, 13 ], "texture": "#cap" }, + "east": { "uv": [ 4, 12, 6, 13 ], "texture": "#cap" } + } + }, + { + "__comment": "Box3", + "from": [ 3.5, 5, 9.5 ], + "to": [ 6.5, 7, 12.5 ], + "faces": { + "down": { "uv": [ 3, 9, 6, 12 ], "texture": "#cap" }, + "up": { "uv": [ 0, 9, 3, 12 ], "texture": "#cap" }, + "north": { "uv": [ 6, 9, 9, 11 ], "texture": "#cap" }, + "south": { "uv": [ 6, 9, 9, 11 ], "texture": "#cap" }, + "west": { "uv": [ 6, 9, 9, 11 ], "texture": "#cap" }, + "east": { "uv": [ 6, 9, 9, 11 ], "texture": "#cap" } + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/betterend/textures/block/jellyshroom_ceiling_stem.png b/src/main/resources/assets/betterend/textures/block/jellyshroom_ceiling_stem.png new file mode 100644 index 0000000000000000000000000000000000000000..59f766339714caab8bc94927b270d1292e293c08 GIT binary patch literal 1541 zcmbVMU5Fb+9N%~nw0HeLrPNb!Z|{^=-OTLfduU8A$+ZdXp64}k*9W1K*-5foc4u#Q zu1QY8>z7zOXtAiJ2tNB#D3nrAX#IE)eCVs#R8B<-w}ON(OO6O1RK;{U>S4~ywZw|v5vr17VN5s|Kbx=)fG-?pmDeAzgL z2(x3@WHlP=*sefJ(!qSk#bkwYxkek7lT)_7xUI;RnNyaM1~l9vZCd4Zj~-v2uafl@ zk~Nk5Yx2Pk5(GBoSnk*@$48x<(&t5D9UKEi?nC%WPMHk^%FD)rTx1@Vld+Uaw1h6F zvoS3NvwGrHS%+F0z%SIy{smb~&ZVxr+d3x7)FHJjT2R z(6ZSqfI851RUlNq>u}sr9e;YnP@+EZESFo%kpo6tV{1I82u%kj*ltMc_(L}dhk*`u zffj>-NqwM6LY%wiwfe$M0%(ic)ZxCsY9Us5$uL6r18HqLMEiX1l+b8s+XK;lwd+!_ zNPV{E5juBDNSq!i<~A8;ev|!!9pQCojf;vN#hiIn##*C5EsR*?VlfCzM&7?gsL&iGLfE1Y9^^C)HESURm&tYDuz^3^-P*jsAp5j zOnUUb#K>9@#L;{6f4+a+vqTZ$)}!-;K|)2=VxGZF;pKRc!u?c2Wy=@w>JE$II9(mC zT9(|;9)wAd;5mf^k)@_GJhmR$GXvUolM2#*3HJczvpR2MkIpuP7au00fY2WV)i^K( z{N2j_-Crtq1Q+cfScZK_Y{E`P9nro#(Wh4B&yR>6cdJsGt!BO_fAo6!v6MXd@o&AY zPcBaU>b*R1w{at`|12GwxD}a>@6L}+ZQPZjd#B!b@3V{dF4@u#?9dWa-X8zvslv_M zKi!<1+nfO#kL`(``?Aox{CpJl&L+-I{JwoJX+<|`krUg$yy@?|uxsp6)Xb0lxH;2} zn9qGTzEFJsX!*luKkA*na{8G&g-zw;;!6jnzIrS2!QpqV)xO?q!>v2t-hZ*d0W4g; j|L%;jIdeX8eNuGuD>ur!SFa!H1&z8gH($C|IC