Hello,
How can I make a multilayer block model?
With that I mean I specify the texture of layer 1 and layer 2 and layer 2 gets rendered on top of layer 1.
I've tried:
{
"parent": "block/cube_all",
"textures": {
"all": "blocks/stone",
"overlay": "dgm:blocks/cheese_ore"
},
"elements": [
{
"from": [ 0, 0, 0 ],
"to": [ 16, 16, 16 ],
"faces": {
"down": { "texture": "#overlay", "cullface": "down" },
"up": { "texture": "#overlay", "cullface": "up" },
"north": { "texture": "#overlay", "cullface": "north" },
"south": { "texture": "#overlay", "cullface": "south" },
"west": { "texture": "#overlay", "cullface": "west" },
"east": { "texture": "#overlay", "cullface": "east" }
}
}
]
}
But that only renders the overlay and the transparency in it white.
Then I tried making the block opaque etc. and that ended up making the transparency transparent without the other layer:
public class CheeseOre extends Block {
public CheeseOre(Material materialIn) {
super(materialIn);
}
@Override
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer() {
return BlockRenderLayer.CUTOUT;
}
@Override
public boolean isFullCube(IBlockState state) {
return false;
}
@Override
public boolean isOpaqueCube(IBlockState state) {
return false;
}
}
So how can I do it?