Skip to content

Commit bbdc707

Browse files
committed
-Fixed rendering issues with large chains
1 parent 2a63adb commit bbdc707

File tree

4 files changed

+9
-17
lines changed

4 files changed

+9
-17
lines changed

src/main/java/net/ultimatech/bountifulblocks/BountifulBlocks.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.google.common.collect.ImmutableMap;
44
import net.minecraft.world.level.block.Block;
55
import net.minecraft.world.level.block.Blocks;
6+
import net.neoforged.neoforge.client.model.renderable.ITextureRenderTypeLookup;
67
import net.neoforged.neoforge.registries.DeferredBlock;
78
import net.ultimatech.bountifulblocks.block.BBBlockSetTypes;
89
import net.ultimatech.bountifulblocks.block.BBBlocks;
@@ -79,6 +80,7 @@ public void onServerStarting(ServerStartingEvent event) {}
7980
@EventBusSubscriber(modid = MOD_ID, bus = EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
8081
public static class ClientModEvents {
8182
@SubscribeEvent
82-
public static void onClientSetup(FMLClientSetupEvent event) {}
83+
public static void onClientSetup(FMLClientSetupEvent event) {
84+
}
8385
}
8486
}

src/main/java/net/ultimatech/bountifulblocks/block/BBBlocks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ public class BBBlocks {
632632

633633

634634
public static final DeferredBlock<Block> LARGE_CHAIN = registerBlock("large_chain", () ->
635-
new LargeChainBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.CHAIN)));
635+
new LargeChainBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.CHAIN).noOcclusion()));
636636

637637

638638

src/main/resources/assets/bountifulblocks/models/block/large_chain.json

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"credit": "Made by ultimatech using Blockbench",
3+
"ambientocclusion": false,
4+
"render_type": "minecraft:cutout",
35
"textures": {
46
"0": "bountifulblocks:block/large_chain",
57
"particle": "bountifulblocks:block/large_chain"
@@ -12,11 +14,7 @@
1214
"rotation": {"angle": -45, "axis": "y", "origin": [8.5, 2, 8.5]},
1315
"faces": {
1416
"north": {"uv": [0, 0, 16, 16], "texture": "#0"},
15-
"east": {"uv": [0, 0, 0, 16], "texture": "#missing"},
16-
"south": {"uv": [16, 0, 0, 16], "texture": "#0"},
17-
"west": {"uv": [0, 0, 0, 16], "texture": "#missing"},
18-
"up": {"uv": [0, 0, 16, 0], "texture": "#missing"},
19-
"down": {"uv": [0, 0, 16, 0], "texture": "#missing"}
17+
"south": {"uv": [16, 0, 0, 16], "texture": "#0"}
2018
}
2119
},
2220
{
@@ -26,11 +24,7 @@
2624
"rotation": {"angle": 45, "axis": "y", "origin": [8.5, 2, 8.5]},
2725
"faces": {
2826
"north": {"uv": [0, 0, 16, 10], "texture": "#0"},
29-
"east": {"uv": [0, 0, 0, 10], "texture": "#missing"},
30-
"south": {"uv": [16, 0, 0, 10], "texture": "#0"},
31-
"west": {"uv": [0, 0, 0, 10], "texture": "#missing"},
32-
"up": {"uv": [0, 0, 16, 0], "texture": "#missing"},
33-
"down": {"uv": [0, 0, 16, 0], "texture": "#missing"}
27+
"south": {"uv": [16, 0, 0, 10], "texture": "#0"}
3428
}
3529
},
3630
{
@@ -40,11 +34,7 @@
4034
"rotation": {"angle": 45, "axis": "y", "origin": [8.5, 2, 8.5]},
4135
"faces": {
4236
"north": {"uv": [0, 10, 16, 16], "texture": "#0"},
43-
"east": {"uv": [0, 10, 0, 16], "texture": "#missing"},
44-
"south": {"uv": [16, 10, 0, 16], "texture": "#0"},
45-
"west": {"uv": [0, 10, 0, 16], "texture": "#missing"},
46-
"up": {"uv": [0, 10, 16, 10], "texture": "#missing"},
47-
"down": {"uv": [0, 10, 16, 10], "texture": "#missing"}
37+
"south": {"uv": [16, 10, 0, 16], "texture": "#0"}
4838
}
4939
}
5040
],
-4.58 KB
Loading

0 commit comments

Comments
 (0)