Custom block gui

Started by Purple1988 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Jun 2021
Points:
606

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
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?

Active 4 years ago
Joined Jun 2020
Points:
737

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
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.