Posted July 28, 20205 yr I made a container with a gui in minecraft 1.16.1 and it mostly works. However when I try to take an item out, it takes it out for a bit only for it to appear back in the container. Any idea on why this is? Here is my container class https://pastebin.com/HLiSqCFf Here is my gui class https://pastebin.com/eKH39ZMr Here is my tile entity class https://pastebin.com/A3kSM8wF Here is my block class https://pastebin.com/ExmcFFXf Edited July 28, 20205 yr by binary_404
July 28, 20205 yr Author Yep here it is https://pastebin.com/GaXSBxU9 All it does right now is modify the itemstack in one of the slots. Edited July 28, 20205 yr by binary_404
July 28, 20205 yr This is how I add a item to a slot but you could reverse it. https://github.com/Syconn/Syconn-Star-Wars-Mod/blob/master/src/main/java/mod/syconn/starwars/network/message/MessageCraftLightsaber.java
July 28, 20205 yr Author It only does not work when I try to manually remove it from the gui, sorry for not clarifying.
July 28, 20205 yr Author I figured it out i was only allowing items to be extracted from slot 2 not 0 or 1.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.