Started by
Linksvix99
on
Topic category: Help with Minecraft modding (Java Edition)
I'm attempting to make an enchantment that allows players to open a GUI with three inventory slots when they wear armor that has the enchantment. I'd love to have the armor have their own unique inventory, but that would require MUCH more work, so for now I'll settle for having the items be player-specific. I managed to get the GUI to work, but when I close the GUI the items get deleted. How would I make the items stay in the GUI when closing? I don't want to have a block that "stores" the items, either.
You need block, item, or custom entity to store items.
Storing them in player is not possible at the moment, except if you use open and close gui procedures to transfer items to player variables, which support itemstack. This is doable.
Would there happen to be a specific tutorial for that? You know, making a sort of "alternative inventory" using item variables?
I need help with how to do this as well