NullDev Posted March 2, 2021 Posted March 2, 2021 (edited) I have created a custom crafting table in my mod, and it extends the "CraftingTableBlock" class. For whatever reason, when I right click on it the gui opens, and then immediately closes. How do I make it not close? Do I need a gui that extends WorkbenchContainer? Edited March 2, 2021 by NullDev Quote
Luis_ST Posted March 2, 2021 Posted March 2, 2021 On 3/2/2021 at 5:47 PM, NullDev said: I have created a custom crafting table in my mod, and it extends the "CraftingTableBlock" class. For whatever reason, when I right click on it the gui opens, and then immediately closes. How do I make it not close? Do I need a gui that extends WorkbenchContainer? Expand Yes, that's because the container of the crafting table is bind to the block. you have to create your own container which extends the crafting container. in this you have to overwrite the method WorkbenchContainer#canInteractWith. 1 Quote
Recommended Posts
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.