Testing for opacity of blocks placed on

Started by Faurash on

Topic category: Help with modding (Java Edition)

Last seen on 16:48, 9. Aug 2023
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Testing for opacity of blocks placed on

Heyo all,
sorry if this is a dumb question.
I made a block that can rotate and be placed on various faces of other blocks, however I don't want it placeable on non-opaque blocks;
i.e. the same way redstone is handled in vanilla.

I've been messing around a bunch with Block Valid Placement Conditions, but I can't figure out how to check specifically the block I'm trying to place onto, rather than simply the one below like I see in the guides I've looked at.
Is it even possible without having to make an item with elaborate right-click behavior?

This was my best attempt for at least testing in one placement direction, but all it does is make me unable to place the block at all :/

I would appreciate any help you could give me!