Items in GUI Input slot disappear

Started by ILikeMakingMods2103 on

Topic category: Help with MCreator software

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Items in GUI Input slot disappear

When I put X item in a GUI the player opens when pressing a specific keybind, and then close the GUI and open it back again, it will appear without the items withing their respective slots, as if they had disappeared, I would appreciate some help.

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUIs do not save items when…
Sat, 11/12/2022 - 23:50

GUIs do not save items when attached to entities. To solve this, you can use global variables to save the items in your GUI slots, and have procedures to write everything in the GUI to those variables when it is closed, and read from them when it is opened.