Hey everyone,
So, as a test, I'm trying to make a basic block emit light, which I've named BlockTorch. I've registered the item, and all models are working, and all other bloc properties set work. But the this.setLightLevel doesn't seem to be working. When I place the block, no light is emitted. Here is my class code:
public class BlockTorch extends BlockBase {
public BlockTorch(String name, Material materialIn) {
super(name, materialIn);
this.setHardness(2);
this.setHarvestLevel("axe", 0);
this.setSoundType(SoundType.WOOD);
this.setLightLevel(15);
}
@Override
public boolean isOpaqueCube(IBlockState state) {
return false;
}
@Override
public boolean causesSuffocation(IBlockState state) {
return false;
}
}