Started by
yab1oko
on
Topic category: Help with Minecraft modding (Java Edition)
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
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!
GUI opens, but it not saves items then, but i need a storage, don't know how to bound this gui to item