So anyways, been learning Fabric (A lot easier than Forge) and it has been easy getting around it. There was some hiccups from here to there. This one seems to be quite annoying. I know it should work but it doesn't. I am trying to set the luminance of this block dynamically so every one of those blocks has a random luminance value.
Here is my code for it. Pretty sure it's all right. ChatGPT gives me the same result as I already put down.
https://github.com/jonathan-x01/project-backroom-1.20.4/blob/main/src/main/java/projectbackroom/jonathanx/blocks/level_0_led_dropceiling.java
Any helps is greatly appreciated.