Posted March 20, 201411 yr hi everyone I have been trying for ages to make an item that you right click that opens a gui I have tried all the tutorials i could find please if someone could help me that would be awesome. (also if you want me to post my code just ask) BioWarfare Mod: http://goo.gl/BYWQty
March 20, 201411 yr Minecraft minecraft = Minecraft.getMinecraft(); if (minecraft.renderViewEntity != minecraft.thePlayer) { return; } if (YOURGUISCREEN != null) { minecraft.displayGuiScreen(YOURGUISCREEN); } That's what I use for displaying things without the Player instance, probably not the best, but works.
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.