Started by
MattapoisettPatton27
on
Topic category: Help with Minecraft modding (Java Edition)
With the new blockstate feature, I can get a hanging true / false state like the vanilla lanterns. Where I'm confused is how to I get it to set hanging to true when I place it on the bottom of a block?
On block placed, check face the player clicked on. If the face is facing down then set hanging to true.
Thanks, this works, but is there a way to get it to only be able to place when the center of the block above or below is solid? I know about block placement conditions and how to use them, and there is a procedure block "If block face [] of block at x y z is solid" but that checks the entire face, I need to check specifically the 4 center pixels
Nevermind, I found how! For anyone finding this who wants to do the same, set this procedure in the block placement condition: https://imgur.com/a/lVLN4fl