Answers for "custom block transparent textures are appearing black in game"

0

custom block transparent textures are appearing black in game

// WORKS WITH FABRIC

/* in client mod initializer: */
BlockRenderLayerMap.INSTANCE.putBlock(ExampleMod.MY_BLOCK, RenderLayer.getCutout());
// Replace `RenderLayer.getCutout()` with `RenderLayer.getTranslucent()` if you have a translucent texture.

/* use the nonOpaque method on your block settings. */
class MyBlock extends Block {
    public MyBlock() {
        super(Settings.of(Material.STONE).nonOpaque());
    }
 
    [...]
}
Posted by: Guest on August-17-2020

Code answers related to "custom block transparent textures are appearing black in game"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language