I am making a mod that is supposed to make wood emit light when clicked with a stick.
So far I have the RightClickBlock that tests for when a Player is clicking a planks block while holding a stick, but how do I make that single wood block emit light?
I have seen Blockstate#setLightLevel(), but that doesnt exist in 1.18.1.
It probably would be doable using reflection to set the light of ALL wood blocks, but I need to set the light level ONLY for the CLICKED wood block.