Variables Don't Change

Started by MamaLuigi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Variables Don't Change
Wed, 07/26/2023 - 16:31 (edited)

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:

https://imgur.com/a/LNJsnLF

Any help would be appreciated!

 

Edited by MamaLuigi on Wed, 07/26/2023 - 16:31
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make sure the procedure runs…
Thu, 07/27/2023 - 00:34

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