How to bind GUI to player / Procedure to restrict player having two items

Started by yab1oko on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to bind GUI to player / Procedure to restrict player having two items
Mon, 08/07/2023 - 05:32 (edited)

So im trying to make a backpack, that opens on button, the problem is it's not saving items, because GUI is not bound to player, and i don't know how to do it.

Either solution is i tried to make a simple backpack, but with restriction that it will open if only one backpack is in the inventory, help if you have any ideas, please.

Edited by yab1oko on Mon, 08/07/2023 - 05:32
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a keybind element, then…
Mon, 08/07/2023 - 01:04

Add a keybind element, then make the "On key pressed" procedure, then in player management (or search for it) find "Open screen for [Event/target entity] pass location x: [x] y: [y] z: [z] GUI: (Your backpack GUI)

Then pressing the keybind will open whatever gui you chose. Hope this helps!

 

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI opens, but it not saves…
Mon, 08/07/2023 - 03:05

GUI opens, but it not saves items then, but i need a storage, don't know how to bound this gui to item