Topic category: Help with Minecraft modding (Java Edition)
I am making a production block that has three GUI's. In these GUI's, i made buttons so you can cycle between the three GUI's. I made a procedure that i thought would "move" the items in the slots of the GUI's to the new GUI when you cycle between them. Below are one of the GUI's (they are almost identical except for the text and i will have them doing different Production methods) and the procedure to change to the next GUI in the cycle. When i tried this in a test world, the items just disappear instead of being "moved" to the new GUI. if anyone knows why this is or how to fix it i would appreciate the feedback.
https://drive.google.com/file/d/19ZGxCmrJz7XK87mxFDTz_H71-r4qCvD3/view?usp=sharing
https://drive.google.com/file/d/1pxhFV_R8Y7ZxzGNSYB0zObG6orPsLA8Y/view?usp=sharing
There is probably a way to do this, but I think you're making it more complicated than it needs to be. If the only difference is text and procedures, you can give the block an NBT state to keep track of its current mode, and then make the text a variable that's based on the NBT tag. (You could also display images or change slot behavior based on a tag.) Then you won't have to worry about item transferring.
(You might also be able to add storage slots to the block, but I'm not sure there's a good way to bind said slots to multiple GUIs.)
Thank you for the feed back. Your method sounds much easier. Not sure why i did not think of that.