How do i add a local variable block into my procedure?

Started by Mafin_Official on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i add a local variable block into my procedure?

I'm sorry if this was already asked here before but i couldn't find anything.
I want to make a wait function. I made a local variable and wanted to add 1 to the number of my local variable but when i tried using ((LocVar)+1) but i can't seem to find the (LocVar) block only by itself. Does it exist? If so, where do i find it? Thanks.

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The get and set for local…
Thu, 10/19/2023 - 22:52

The get and set for local and global variables is found in the "custom variables" code block tab inside the procedure's block code editor. But you will encounter a problem, local variables are not able to be called inside of a "wait # ticks" block, if you want a variable inside a wait block you have to make it a global variable.