Items in GUI Input slot disappear

Started by ILikeMakingMods2103 on

Topic category: Help with MCreator software

Last seen on 07:48, 11. Oct 2024
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.

Last seen on 00:07, 8. Apr 2024
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.