Started by
StampyC
on
Topic category: Help with Minecraft modding (Java Edition)
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
this is actually surprisingly simple!
*put it in the 'on right click block' procedure
dont worry i found a much easier solution
i used
if getDirectionOf(providedBlockState) = oppositeOf(playerDirection)
that works, it could just make it hard to click the right face from far to the side