How to open a crafting gui when right click with an item

Started by cubestructeurYT on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to open a crafting gui when right click with an item

(I haven't found any other posts that talk about what I want to do).

I want to create an item that opens a custom crafting GUI on right-click,

I suppose you need to create a block containing the GUI, simulate a right-click on it, and then, when the player exits the GUI, restore the original block.

But i don't know how to do that.

Joined Dec 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I succeeded, I don't need…
Tue, 03/24/2026 - 11:18

I succeeded, I don't need any more help.

Joined Mar 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It would be cool if you…
Tue, 03/24/2026 - 13:24

It would be cool if you shared it so others with the same issue can fix it that way too

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I do need help as well. I…
Mon, 04/06/2026 - 20:44

I do need help as well. I have a block that I want to open the normal crafting GUI instead of me having to create a new one.

Joined Dec 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, but I just need to…
Wed, 04/08/2026 - 21:24

Okay, but I just need to find the procedures again (it's a bit of a mess with all my different projects).