Started by
Tsukides
on
Topic category: Help with Minecraft modding (Java Edition)
Hello.
I'm trying to make a GUI that can store items (Like an enderchest) and i can't manage to make it save the items. Once they're put in, they disappear when re opening it.
Here's what has been done :
Storage (the GUI slots)
The bit that saves what's put inside these slots
The bit that loads what's saved
Any help would be greatly appreciated !
Since the images don't appear, here each of them in order
https://ibb.co/hdHn4MK
https://ibb.co/2NqQ7G0
https://ibb.co/C6GHGdY
First of all shouldnt the variables be player persistent if theyre linked to each player personally otherwise everyone would have the same inventory. I also dont know why your getting a number from text, where the text is getting text from a number, seems unnecessary. Also on what trigger is the closing and saving of the gui slots on.