I want to make a lantern block in 2026.1

Started by MattapoisettPatton27 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to make a lantern block in 2026.1

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?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On block placed, check face…
Thu, 04/02/2026 - 08:40

On block placed, check face the player clicked on. If the face is facing down then set hanging to true.

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, this works, but is…
Thu, 04/02/2026 - 20:36

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