Started by
MamaLuigi
on
Topic category: Help with Minecraft modding (Java Edition)
I need to change a variable by a value every minute, and I also have a command that sends the current value of the "hatch" variable as a chat message, yet the variable never seems to change, no matter how long i leave the game running.
Here is my code, but really only the first "wait" loop is what I am having trouble with:
Any help would be appreciated!
Edited by MamaLuigi on Wed, 07/26/2023 - 16:31
Make sure the procedure runs on the block tick update. Also add a way of knowing the current variable state besides of the block (like a check command). That definitely helps a lot for debugging stuff to see what is going on behind the scenes