All new variable scope explanations?

Started by Sir_cookie98 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
All new variable scope explanations?

I don't often use global variables, but with 1.8.3 and the mod I am currently working on, it seems like I have to. One thing is, though, I'm not entirely certain what each different variable scope does. I've figured out GLOBAL_WORLD more or less, and I'm guessing GLOBAL_SESSION is similar to the old global variables, but I have no idea what GLOBAL_MAP is. Can anybody help?

GLOBAL_WORLD: dimension…
Tue, 06/25/2019 - 09:15
  • GLOBAL_WORLD: dimension specific variables that are stored with the game save
  • GLOBAL_MAP: world save specific variables that are stored with the game save
  • GLOBAL_SESSION: variable that is stored per Minecraft launch instance and is shared across all worlds, but not saved after Minecraft is closed
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok. Thanks Klemen! :D Would…
Tue, 06/25/2019 - 16:01

Ok. Thanks Klemen! :D

Would any of those be per player (not stored as the same between players)?

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you apply variables to a…
Sat, 06/29/2019 - 05:24

Can you apply variables to a block?

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can apply nbt tags.
Sat, 06/29/2019 - 07:01

You can apply nbt tags.