GUI item number not detecting any items

Started by crowinsanity13 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI item number not detecting any items

I have 2 GUI slots, ID 0 and ID 1. ID 0 is the fuel that has a durability. ID 1 is the Item that needs to be in the slot for the GUI to work. Upon pushing the button, what is supposed to happen, is ID 0 loses durability, and ID 1 checks how many items are in the slot, removes those items, and gives you an amount of xp specific to how many items are in there and what kind of items. All of that works. HOWEVER, the part that doesnt work is the sound. when both slots work, you get a correct noise, when both slots or none of them are filled, they make a wrong noise. but the broken part is the fact that when i put both items in there, and the thing works, it makes a correct noise, AND a wrong one. Turns out that the GUI thinks that 1 = 0, which doesnt make any sense. PLEASE help me out here, Im close to tearing my hair out. if the number of items in either slots are 0, make a wrong noise, ELSE, do the good noise, doesnt work..