Adding items to GUI slots

Started by Daytona on

Topic category: Help with modding (Java Edition)

Last seen on 19:18, 30. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Adding items to GUI slots

I'm trying to add items to my GUI slots, like a store basically. 

I made a wallet item, with its own GUI,  so when you right click it brings it up and has slots to put your money/coins in. (almost like a backpack)

I want to add a button that says "Store" and when its clicked it opens another GUI that has slots filled with items that you can buy for currency. 

Only problem I am having is I can't figure out how to add items to the slots that stay when after you close the store. 

I also want it to randomize the items every time you open it so it's not just the same items over and over. 

 

I've checked out the "How to make GUI with slots" video but it didn't help me. 

Last seen on 14:32, 23. Oct 2022
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! I´m answering veryyyy…
Mon, 07/25/2022 - 19:27

Hello!

I´m answering veryyyy late but idc,

It´s faily easy, just uncheck the 

"Drop items when GUI not bound to any external inventory is closed",

It should hopefully fix it :)