Jump to content

[1.8] Add a GUI to Armor Stand


JimiIT92

Recommended Posts

As by title i want to add a GUI to the Vanilla Armor Stand. I've tried to check this event

@SubscribeEvent
public void onRightClick(EntityInteractEvent event)
{
	if(event.target instanceof EntityArmorStand)
	{
		System.out.println("STAND");
	}
}

But when i right click the armor stand nothing happens, there is no print :/ How can i check if the player is right clicking the armor stand? And also how can i show then the GUI? :)

Don't blame me if i always ask for your help. I just want to learn to be better :)

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.