My issue was that I thought this can be done without adding a new class. My bad.
Thank you.
public class CrazyBlock extends Block
{
public CrazyBlock(Block.Properties builder)
{
super(builder);
}
public BlockRenderLayer getRenderLayer()
{
return BlockRenderLayer.TRANSLUCENT;
}
}
By soild I ment opaque (not transparent). I added a screenshot of what I mean. The BlockItem in hand is clearly transparent and when put on ground the block is not.
I created a block:
BlockList.butter_block = new Block(Block.Properties.create(Material.GLASS).hardnessAndResistance(2.0f, 3.0f)
.lightValue(15)
.sound(SoundType.SLIME)
.slipperiness(1.06f)
.variableOpacity()
).setRegistryName(location("butter_block"))
I created a transparent texture and the blockItem in hand is transparent (like grass) but it's opaque (not transparent) when put on the ground. What's the problem?
Minecraft 13.2
Forge 25
7 replies
Important Information
By using this site, you agree to our Terms of Use.