Jump to content

[1.7.10] [SOLVED] Right Click Item opens a GUI problem


Recommended Posts

Posted

Hello guys, I am making an item that opens a custom GUI when is right clicked but anything happens. I made the GuiHandler, Container and GUI, as below:

 

Item class

 

  Reveal hidden contents

 

 

GuiHandler

 

  Reveal hidden contents

 

 

Gui

 

  Reveal hidden contents

 

 

 

Container

 

  Reveal hidden contents

 

Posted
  On 2/13/2016 at 1:47 PM, Failender said:

are you registering the gui handler?

 

Yes, I have a tile entity with gui that works perfectly, but not the Item.

 

Registering GUI Handler on CommonProxy:

 

  Reveal hidden contents

 

Posted
  On 2/13/2016 at 5:34 PM, diesieben07 said:

Your GuiHandler always checks if a TileEntity exists at the supplied position and does nothing if there is none.

Oh thanks! I didn't saw it. :P

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.