Posted February 14, 20223 yr Hi, I made a custom shape (no textures yet). And when I place it, I can see through the floor for some reason. Am I missing a setting to tell it to render the top texture of the block under? The block is declared like this: public static final BlockBehaviour.Properties RUNE_BLOCK_PROPERTIES = BlockBehaviour.Properties .of(Material.HEAVY_METAL, MaterialColor.TERRACOTTA_BLACK) .strength(-1.0F, 3600000.0F) .noDrops() .sound(SoundType.METAL) .lightLevel(s -> 10); public static final RegistryObject<Block> SHAPED_BLOCK_00 = BLOCKS.register("shaped_block_00", () -> new Block(RUNE_BLOCK_PROPERTIES)); This is my model: { "credit": "Made with Blockbench", "elements": [ { "from": [9, 0, 1], "to": [14, 1, 9], "color": 1, "faces": { "north": {"uv": [0, 0, 5, 1], "texture": "#missing"}, "east": {"uv": [0, 0, 8, 1], "texture": "#missing"}, "south": {"uv": [0, 0, 5, 1], "texture": "#missing"}, "west": {"uv": [0, 0, 8, 1], "texture": "#missing"}, "up": {"uv": [0, 0, 5, 8], "texture": "#missing"}, "down": {"uv": [0, 0, 5, 8], "texture": "#missing"} } }, { "from": [9, 1, 3], "to": [14, 2, 9], "color": 2, "faces": { "north": {"uv": [0, 0, 5, 1], "texture": "#missing"}, "east": {"uv": [0, 0, 6, 1], "texture": "#missing"}, "south": {"uv": [0, 0, 5, 1], "texture": "#missing"}, "west": {"uv": [0, 0, 6, 1], "texture": "#missing"}, "up": {"uv": [0, 0, 5, 6], "texture": "#missing"}, "down": {"uv": [0, 0, 5, 6], "texture": "#missing"} } }, { "from": [9, 2, 6], "to": [14, 3, 9], "color": 4, "faces": { "north": {"uv": [0, 0, 5, 1], "texture": "#missing"}, "east": {"uv": [0, 0, 3, 1], "texture": "#missing"}, "south": {"uv": [0, 0, 5, 1], "texture": "#missing"}, "west": {"uv": [0, 0, 3, 1], "texture": "#missing"}, "up": {"uv": [0, 0, 5, 3], "texture": "#missing"}, "down": {"uv": [0, 0, 5, 3], "texture": "#missing"} } }, { "from": [9, 3, 7], "to": [14, 16, 9], "color": 7, "faces": { "north": {"uv": [0, 0, 5, 13], "texture": "#missing"}, "east": {"uv": [0, 0, 2, 13], "texture": "#missing"}, "south": {"uv": [0, 0, 5, 13], "texture": "#missing"}, "west": {"uv": [0, 0, 2, 13], "texture": "#missing"}, "up": {"uv": [0, 0, 5, 2], "texture": "#missing"}, "down": {"uv": [0, 0, 5, 2], "texture": "#missing"} } } ] }
February 14, 20223 yr Author 10 minutes ago, Luis_ST said: you never define a texture in your model I just put textures on, and still get the same result with the floor under my model being see-through. I am not supposed to see the sky blue square. It should be grass.
February 14, 20223 yr Author 4 minutes ago, Luis_ST said: add noOcclusion to your Block.Properties Worked like a charm. Thanks a lot
February 14, 20223 yr Author Started a separate post for another question Edited February 14, 20223 yr by Ideki
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.