Zeroing NBT Tags

Started by Shiori on Sat, 08/29/2020 - 20:59

Topic category: Bugs and solutions

Last seen on 12:56, 24. Sep 2020
Joined Apr 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Zeroing NBT Tags
Sat, 08/29/2020 - 20:59

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

Last seen on 03:14, 28. Oct 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 12:56, 24. Sep 2020
Joined Apr 2019
User points:

User statistics:

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

Ok, Thanks