Do local variables count for procedures called in a procedure?

Started by Kuraion on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do local variables count for procedures called in a procedure?

So I have a procedure that is supposed to run whenever I destroy some specific blocks, but depending on which type of block is destroyed, I need the local variables to have different values. Can I now use a procedure that sets those variables and then calls the main procedure using the "call procedure" block? 

That would make it a lot easier since I would only need to have that main procedure created once instead of having to create it again for every new block 

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use global variables 
Thu, 11/11/2021 - 02:00

use global variables