Help with detecting what face is clicked by a player

Started by Diamentus on

Topic category: Help with modding (Java Edition)

Last seen on 17:43, 3. Jan 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with detecting what face is clicked by a player

So, i want to create a block to my mod which emits a redstone signal when front of it is right-clicked and I can't find a way to detect what face of a block the player is facing (if the player is clicking the front of the block or somewhere else on it)

I saw the ways to detect if the block is facing the specific directions (Up/Down/North/South/East/West) but not if the player is right-clicking the front of it.

Last seen on 21:37, 17. Feb 2024
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do if [clicked side]=[get…
Fri, 09/15/2023 - 15:30

Do if [clicked side]=[get direction of [block]]