Jump to content

Recommended Posts

Posted

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"}
			}
		}
	]
}



GbC61KV.png

Posted
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.

Uv0jZLW.png

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.