Jump to content

Making a player gui open from entity


Asweez

Recommended Posts

Ok so I have an entity and whenever it hits another player I want it to show the player that created the entity to see, but not interact with, the hit player's inventory. I have it set up so the entity onImpact calls MainClass.proxy.method() and in that method in my client proxy I open a guiScreen for the players inventory. However, when I am on a server with another user, whenever the entity hits the other player, it calls the commonProxy method. How would I make this work?

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Link to comment
Share on other sites

If inventory - No, you need normal guis with containers... Just look in tutorial of guis and containers, and instead of creating more inventories use player's... Or call player.openInventory...

If simple gui without slots - check that code is run on both sides...

And code would be helpfull...

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.

Guest
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.

Announcements



×
×
  • Create New...

Important Information

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