(Closed) NBT wont update for Item, Always set to 0

Started by EnergyDevelop on Sat, 11/27/2021 - 11:41

Topic category: Help with modding (Java Edition)

Last seen on 13:42, 9. Jan 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(Closed) NBT wont update for Item, Always set to 0
Sat, 11/27/2021 - 17:32 (edited)

I've been trying to make a sword with multiple modes, using NBT to store the current mode as either 0, 1, 2 or 3.

I've used this procedure:

https://i.imgur.com/ihu8Wgz.png

But the problem is the NBT Value does not increase, it just stays at 0.0 all the time.

Does anybody know why this could happen and how it could be fixed?

Edited by EnergyDevelop on Sat, 11/27/2021 - 17:32
Last seen on 13:42, 9. Jan 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
if u dont wanna go on imgur…
Sat, 11/27/2021 - 11:42

if u dont wanna go on imgur here is the direct thing to the procedure

Last seen on 13:42, 9. Jan 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Oh yeah, this happens on…
Sat, 11/27/2021 - 17:14

Oh yeah, this happens on When Clicked On Air and im using version 2021.2 currently.

Last seen on 13:42, 9. Jan 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Just realized global…
Sat, 11/27/2021 - 17:31

Just realized global variables get reset after the procedure is called, I thought they stayed as the item.

Issue is no longer relevent.