Custom block gui

Started by Purple1988 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom block gui

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?

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A GUI can be opened if you…
Sun, 07/04/2021 - 06:08

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.