All new variable scope explanations?

Started by Sir_cookie98 on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Jun 2016
Points:
1724

User statistics:

  • Modifications: 6
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1752
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
Active 4 years ago
Joined Jun 2016
Points:
1724

User statistics:

  • Modifications: 6
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1752
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)?

Active 5 years ago
Joined Dec 2016
Points:
714

User statistics:

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

Can you apply variables to a block?

Active 4 years ago
Joined Jun 2016
Points:
1724

User statistics:

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

You can apply nbt tags.