Topic category: Help with modding (Java Edition)
So I edited this topic was originally about asking how procedures work, now it's about how to detect rain
I tried neighbor block changes, I tried random update, and I tried all that I could. Even tried if/do, while/do procedures and seems to crash when in game after I toggle the rain. I was curious if I was doing something wrong, so I changed things up.
All I would like to know if someone could show me how to do these two things, and I could learn from there.
First: Make it so when it's raining the block swaps to the lamp_on block different texture with 15 light and redstone power. When it's not raining, it swaps back to the other textured block with no redstone power nor light.
Second: A block that is solid that swaps to a block that has power with gravity when powered by redstone and redstone power and when powered again, swaps back to the solid state block without power til it gets powered with redstone again.