Prior to 1.8, it was possible to have partially transparent blocks by use of isOpaqueCube and renderAsNormalBlock. Though it seems taht renderAsNormalBlock was removed.
I have multiple blocks that are either partially transparent everywhere (like stained glass) or that are fully transparent on parts of the texture. All of these blocks are rendered correctly in the inventory and when held in hand, but not when placed down. (when placed down, they are completely opaque but otherwise rendered correctly)
Prior to 1.8, it was possible to have partially transparent blocks by use of isOpaqueCube and renderAsNormalBlock. Though it seems taht renderAsNormalBlock was removed.
I have multiple blocks that are either partially transparent everywhere (like stained glass) or that are fully transparent on parts of the texture. All of these blocks are rendered correctly in the inventory and when held in hand, but not when placed down. (when placed down, they are completely opaque but otherwise rendered correctly)
Example class
Is there a replacement for renderAsNormalBlock and / or do I need to add something else?
renderAsNormalBlock has been replaces by isFullCube and you also need to add
@Override
public BlockRenderLayer getBlockLayer() {
return BlockRenderLayer.TRANSLUCENT;
}
You can get more info on Block Rendering at
http://greyminecraftcoder.blogspot.com/2014/12/block-rendering-18.html
and yes the info still applies to 1.10