Started by
Shiori
on
Topic category: Troubleshooting, bugs, and solutions
In the version of the mod for 1.12.2 made on MCreator 20203 NBT Tags used on the player work fine
In the version of the same mod converted for 1.15.2, as well as in a separate mod originally made on MCreator 20204 NBT Tags used on the player are reset to zero after re-entering the world
NBT tags always reset on death, and have an issue "reloading" in a way when leaving and rejoining a world. At this point, there's really no point in using player NBT tags anyways as you have the ability to use a "player_persistent" global variable now, or "player_lifetime" if you want it to reset. It works as a variable that attaches to the player themselves, just like your typical NBT tag, but it loads and saves exactly as you'd expect with no issues whatsoever so far.
Ok, Thanks