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

jJskiTi.png

Edited by Liuxss
No image

 

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.

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.