Posted March 14, 20232 yr Hi, I had a problem creating a block with transparent parts and I don't know how to fix it or what is causing it, I already tried looking for solutions but none of them work for me, could someone help me? Edited March 15, 20232 yr by Liuxss No image
March 16, 20232 yr declare the blocks with the no occlusion thing public static final RegistryObject<Block> DIRT_PATH_SLAB = register_slab("dirt_path_slab", () -> new slab(Block.Properties.copy(Blocks.DIRT).noOcclusion() ) ); also in the json model for the block adds the render type to cutout { "parent": "block/block", "ambientocclusion": "true", "render_type": "cutout", "elements": [ { "from": [ 0, 0, 0 ], "to": [ 16, 7, 16 ], "faces": { "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#bottom", "cullface": "down" }, "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#top", "cullface": "up", "tintindex": 0 }, "north": { "uv": [ 0, 1, 16, 8 ], "texture": "#side", "cullface": "north" }, "south": { "uv": [ 0, 1, 16, 8 ], "texture": "#side", "cullface": "south" }, "west": { "uv": [ 0, 1, 16, 8 ], "texture": "#side", "cullface": "west" }, "east": { "uv": [ 0, 1, 16, 8 ], "texture": "#side", "cullface": "east" } } }, { "from": [ 0, 0, 0 ], "to": [ 16, 7, 16 ], "faces": { "north": { "uv": [ 0, 1, 16, 8 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" }, "south": { "uv": [ 0, 1, 16, 8 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" }, "west": { "uv": [ 0, 1, 16, 8 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" }, "east": { "uv": [ 0, 1, 16, 8 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" } } } ] }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.