Started by
NekoTwT
on
Topic category: Help with MCreator software
so, long story short, i made it so user pushes a button in gui of said block, which then will set a local variable in that button press procedure, and then from the update tick event GET that local variable from said procedure, yes, i know its a LOCAL variable but is there any way to do that or something similar?
whoops i set this as the wrong category
actually nvm i think it was the right category
If you want to make it within the one block then use the NBT tags. These are like "local variables" but they are stored inside the block. So you can run different procedures for the block and use these NBT tags between them. You can find them in Block procedures bricks.
But if you want to use the variables between different blocks, you have to use global variables.
This might help: https://mcreator.net/wiki/variables
omg thank you for reminding me about nbt because i completely forgot that existed thanks
Same lol thanks