Posted February 18, 201312 yr I have an item and I want to use it to only open a gui. I will not store any items in it or use it for anything else. I'm not to familiar with Gui's so any advice on where to start with this one would be greatly appreciated.
February 18, 201312 yr I am sure you will find ur solution here http://www.minecraftforge.net/wiki/Containers_and_GUIs#Opening_the_GUI ~I was here~
February 18, 201312 yr Author I did see that one but it did not say 1.4.6 or current next to it so I was just wondering if it is still relevant.
February 20, 201312 yr I have the same question with the rigthclickItem = Open gui event. But this tutorial is only for Blocks. Not for items. So how can i open Guis with the function onItemRightClick(ItemStack par1, World par2, EntityPlayer par3)?
February 20, 201312 yr I used this code and it fail. DTGuis.advancedToolBenchID = 3; public ItemStack onItemRightClick(ItemStack par1, World par2, EntityPlayer par3) { par3.openGui(DynamicTools.instance, DTGuis.advancedToolBenchID, par3.worldobj, (int)par3.Xcoord, (int)par3.Ycoord, (int)par3.Zcoord); return par1; }
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.