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.
I think procedures are better way of adding additional methods for elements and you don't have to redo them every time you are making block/item Again
if you want to learn how Procedures works you can check this Site: https://scratch.mit.edu/
its mostly for making Games/Programs with procedures but they all work the same way there and here the only difference between them are naming, amount of blocks with code and use
Nah I'm a dummy and I got everything I wanted working perfectly fine, just took me a bit to learn but I understand how it works, it's like coding with easy to understand brackets. Only thing I really irritates me is I have to do two recipes for one block. Meaning I made compacted sand, and have to do a recipe to create it and a recipe to have it changed back. It's not very helpful on that, I understand why they did that, but meh.
So I'm trying to make it so it'll activate a procedure only when it's raining, I tried random update event and tick update event on the block itself, and to no avail. I know the procedure is right. I even tried when neighbor block changes, and literally didn't help me. Just wanted to make a rain lamp that turns a light on when it's raining and provides power. I could easily do this in 1.7.8.
If weather is rain
Do what ever you want to do
Else if not weather is rain
Do opposite of above
Now in your block set the tick rate to 20 "20 ticks = 1 sec and 1 tick = 0.05sec" than set this procedure to event on tick update and from now it this procedure will start checking every 1sec if it's raining or not
@Wes: Sorry, took way to long for you to respond for any help. I found a modder to help make minecraft 3.0 containing these ideas and alot more. I am looking for people who want to help, they will get donations in money plus insta op on server I'll be creating along with custom cosmetics only they can get.