Started by
ydydxhg
on
Topic category: Advanced modding
HI guys,
Please correct me if I am wrong here,
I think the local variables are only used within a procedure call, just like variables defined in the scope of a Java method, as an example.
and Global variables are like static variables shared by the whole mod package....? say you create a block that does something, and when you use a global variable in the procedures, multiple instances of the that block will use the same value. well, this is whats happening with my current project....
But what i want is something that only shares within the block instance. is there something like this?
for that use nbt block data
ah ok, i will check it out, thanks a lot