Started by
SirPogsalot
on
Topic category: Help with Minecraft modding (Java Edition)
I need a way to save the inventory of a GUI which is opened via keybind. There are a ton of items that can be obtained that all have a similar function, but they must be "equipped" to be used and I don't seem to be able to create a GUI that saves its contents and is bound to the player. Any ideas?
The only way I can think of is to use player variables (itemstack type) to store inventory data and then on gui open and close triggers, load and save the data from slots to the player variables
@Klemen how can this be done?