Zeroing NBT Tags

Started by Shiori on

Topic category: Troubleshooting, bugs, and solutions

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Zeroing NBT Tags

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

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NBT tags always reset on…
Sun, 08/30/2020 - 05:39

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.

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, Thanks
Sun, 08/30/2020 - 14:31

Ok, Thanks