Started by
ululu
on
Topic category: Help with Minecraft modding (Java Edition)
From what I understand, global variables currently start at their default value every time they're loaded, i.e. a "GLOBAL_MAP" variable set to default to False will always be False when the world is loaded. Is there a way to permanently save the state of a variable so that it is loaded from memory, rather than as a default value?
Edited by ululu on Wed, 09/25/2019 - 01:55
I think GLOBAL_MAP is the permanent one.
GLOBAL_MAP and GLOBAL_WORLD are permanent, plus all NBT tag variables in procedures.
My mod resets my global_world everytime you quit the world, why is this?
Name: EndDefeated
Variable type: Number
Scope: global_world
initial value: 0
Right clicking with an item sets the initial value to 1
The variable resets everytime you exit the world, do you have any solutions?
Do you use 2020.1?
No im still using 1.9.1 will updating to 2020.1 affect my mod in any way?
No, but please update to 2020.2 which fixes this bug, 2020.1 still has it.
Yes, it will fix many bugs your mod has right now due to not using the latest version.
MCreator 2020.2 freezes on loading generators 1.12.2 at around 60% of the loading bar, I have restarted my pc, uninstalled & resinstalled multiple times but I have the same issue.
Any solutions?
Even closing it with task manager leaves the loading screen there
Thanks seems to be working fine :)