Jump to content

[1.7.2]Setting a ItemStack in a slot in an Instance Based Gui from the Server


Recommended Posts

Hello, I have a gui that is separate for each player, so when a player right clicks a block it opens a new instance and recycles that instance for that player only, until the server is restarted. Bassically I need to load items into the Inv from nbt that is stored in an Extended Properties Class. I have the class and code made, but it does not work. Currently I have tried to set an ItemStack into a slot, but it does not show up in the inv, when I load the world. My question is , "Do I need to send packets to sync the Server and the Client side Inv?".

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.