Posted November 30, 20205 yr Hi, I'm currently making a minecraft forge mod and i want an item to show a gui when i right-click on it. How coul i make it ? Any help would be really appreciated Thx in advance --Windokk
December 1, 20205 yr in your Item class override the OnItemRightClick method, check if the world isn't remote, and then you can call NetworkHooks.openGUI you're also going to need a ContainerProvider and a ContainerScreen for that. I recommend you take a look at this tutorial done by TheGreyGhost: https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe32_inventory_item
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.