Block face detection for Placement Restriction.

Started by Gavirium on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Block face detection for Placement Restriction.

How would one go about checking the block face you're trying to place something against is solid, through block valid placement condition. Similar to how a "Amethyst Cluster" does it. I've tried using a "direction" local variable, but couldn't get anything to work. Could anyone show me the way:)

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://mcreator.net/forum…
Wed, 01/15/2025 - 02:57

https://mcreator.net/forum/106291/wall-only-block-placement-solved

This one helped me out. I just added two additional for the Up and Down placement and made sure that the "Pitch Rotation" setting was checked in the "Visual" portion of the block

 

Hope this helps :)