Right click of different block face to open different guis

Started by StampyC on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right click of different block face to open different guis

In pseudocode i kind of want it to be like:

onrightClickSpecificBlock()

if ticketGateblockFace == sideWithScanner then
   openGui(GUI1);
   playsound('beep',1,1);
else  do nothing
   
i do want to use the code blocks preferably
the only probem is that the block is rotatable so then it will mess up the gui thing
the gui opens specificaly on the side with scanner and not on any other side