Do local variables count for procedures called in a procedure?

Started by Kuraion on

Topic category: Help with modding (Java Edition)

Last seen on 11:46, 11. Dec 2021
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 

Last seen on 04:28, 26. Jan 2024
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