My equipment player GUI keeps deleting items

Started by Captain_Shitpost on Thu, 08/27/2020 - 21:05

Topic category: User side tutorials

Last seen on 18:20, 6. May 2022
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
My equipment player GUI keeps deleting items
Fri, 08/28/2020 - 09:57 (edited)

So, i am trying to make a equipment GUI with slots that give positive effects when some special item is placed in it (Like Lightweight Leather Boots make you walk a little bit faster) but my GUI is deleting my item when i close my it, which is destroying my mod's whole purpose, how can i fix this?

Edited by Captain_Shitpost on Fri, 08/28/2020 - 09:57
MCreator version? Minecraft…
Fri, 08/28/2020 - 06:27

MCreator version? Minecraft version?

Did you bind GUI to item?

Last seen on 18:20, 6. May 2022
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Mcreator version is 2020.4  …
Fri, 08/28/2020 - 09:56

Mcreator version is 2020.4

 

I binded GUI to the procedure, without anything esle but procedure.

Oh, i didn't realy thinked about using an item, and after a lot of testing i think making it work without an item is impossible or very hard. So thanks for the tip, and for mcreator. Have a good day!

Last seen on 06:40, 15. Feb 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Guis containing items must…
Wed, 09/02/2020 - 11:27

Guis containing items must be serialized and then deserialized with tags to store the items