Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (โ‹ฎ) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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

Uv0jZLW.png

  • Author
4 minutes ago, Luis_ST said:

add noOcclusion to your Block.Properties

Worked like a charm.
Thanks a lot

  • Author

Started a separate post for another question

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions โ†’ Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.