How can I check the face (ceiling, floor or wall) of a block?

Started by lalkaveka on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I check the face (ceiling, floor or wall) of a block?

I made a block that is positioned relative to the player's view (Y axis rotation + pitch rotation), and I want to determine the specific side of the block in the procedure. I can find the facing (east, north, south or west), but I can't find the face (ceiling, floor or wall).

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe use the facing to find…
Tue, 01/06/2026 - 00:41

maybe use the facing to find the face like, if its NSWE it's floor, if its down its ceiling, if its up its floor (atleast for lever like things, i hope it helps)

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I Love Mcreator, If I use…
Tue, 01/06/2026 - 08:58

I Love Mcreator, If I use pitch rotation, then the block has no UP and DOWN sides. I created a procedure that changes the texture of the block if it is facing UDNSWE (only 1 direction at a time), and only the NSWE sides worked.