Started by
Purple1988
on
Topic category: Help with Minecraft modding (Java Edition)
I am making a mod that lets you trade useless stuff like seeds and flowers for emeralds, but i can't figure out how to make a GUI open when a block is right-clicked.
I am also having i problem, how can I make recipes with a custom GUI?
Crafting block with a timer | MCreator
You have some stuff related to your question there. :)
A GUI can be opened if you use the "Open GUI[GUI name] for [Player]" block. Then put a global trigger sensing when a block is right clicked by a player, and an if statement checking if the block at [x][y][z] is equal to the right block.