GUI Issues within my current mod

Started by bugnit on

Topic category: Troubleshooting, bugs, and solutions

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI Issues within my current mod

Hello.

I recently started a massive project where I am recreating most items from hypixel skyblock, and with the ~10 armor sets ive added so far I think its an appropriate time for me to add a wardrobe system.

So far, I have this for the GUI:

McreatorGUI.png

And for the 5 buttons I have this code, but the slot of the GUI is increased by 4 for each increasing button:

ButtonCodeIssue.png

The issue I am running into is whenever I equip an armor set for the first time, it works fine, but after multiple changes of the set one will be deleted, and soon after the other will duplicate. Does anyone know the cause of this? I've been sitting here for 2 hours trying to figure out what's wrong and I just don't see it. If anyone knows how to fix this or knows another way to code it where it wont be buggy like this please tell me, I'll be here! Another thing that I observed is that this glitch happens significantly more often with the first 2 slots of the GUI, despite the code being identical for all 5.