statement do does not support local variables

Started by megafunforever on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
statement do does not support local variables

So I have this problem. I tried making a procedure, and putting a local variable in a wait block. Oviously, this does not work, due to the wait block being server side. I'm not looking for a fix. im looking for a solution that ISNT global variables, due to the way the variables need to be read. any sugestion is welcomed. thanks in advance

 

 

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that is actually caused by…
Wed, 06/25/2025 - 21:27

that is actually caused by how Java works, not the wait block being server side, but now there's no need to explain why it happens. There is an easy solution if you use some custom code to declare an array: https://imgur.com/BtGlH6r