Started by
EnergyDevelop
on
Topic category: Help with Minecraft modding (Java Edition)
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
if u dont wanna go on imgur here is the direct thing to the procedure
Oh yeah, this happens on When Clicked On Air and im using version 2021.2 currently.
Just realized global variables get reset after the procedure is called, I thought they stayed as the item.
Issue is no longer relevent.