I want to create a light block but the setLightLevel command doesn't work!
public static final RegistryObject<Block> LIGHTBLOCK = registerBlock("lightblock", () ->
new Block(AbstractBlock.Properties.create(Material.REDSTONE_LIGHT).hardnessAndResistance(1f, 3f).setLightLevel()));
// ^^
I'm looking for a way to change this block. Code:
@Override
public void onBlockClicked(BlockState state, World worldIn, BlockPos pos, PlayerEntity player) {
//Here I want to change the block
super.onBlockClicked(state, worldIn, pos, player);
}