Started by
drum
on
Topic category: Help with Minecraft modding (Java Edition)
I'm developing a small mod in which you need to make several items with abilities. I want to add a small icon to the screen that would show that the ability is still being recharged, but for some reason, after the icon appears, it does not disappear, although the nbt changes to false. Since it's an ability, I can push it again via cd
I don't know what you are using to set the nbt to true or false, but it looks like you are running the GuiView procedure three times? When it only needs to be run from the image display condition, you shouldn't need to use the global trigger or the boots tick event for it. Other than being run more often than needed, it looks fine so the problem is probably with the nbt, possibly a mismatch of item nbt/entity nbt, or it could be a client-server desynchronization issue, which can happen when using nbt, but really, I can't know for sure what is going on unless I see the procedure that sets the nbt to true or false.