How to get gui slots even if its closed.

Started by Bihi10 on

Topic category: Help with modding (Java Edition)

Last seen on 19:01, 8. Jul 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get gui slots even if its closed.

(Written in trash english)

I have an issue i have bound a gui with to an block entity. And it doesn't seem to get the slots when to ui is closed.

I also used the "Get a copy from item in slot from block" procedure block.

Last seen on 20:43, 20. Aug 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Binding a GUI to a block…
Wed, 09/27/2023 - 15:22

Binding a GUI to a block does not mean the block itself has storage slots. Clicking the block will open the GUI, but because the block does not have storage, items will go back to your inventory once the GUI is closed. (This is how the crafting table works- the crafting table can only store items if you have the GUI open.) You need to give your block storage slots, then reference the storage slots of the block in the GUI.