Need help detecting block sides and adjacent blocks.

Started by Zack Modding on

Topic category: Help with modding (Java Edition)

Last seen on 16:05, 2. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help detecting block sides and adjacent blocks.

So my biggest issue currently is not being able to detect if there's a block next to, or just detecting a block face.
1. I'm trying to create a ladder block, already made a model, made the hitbox correct, but I want it so you can only place it against a wall- not free floating in air but I don't know how to detect a block behind it.
2. Also trying to make an item light blocks just like a flint and steel- however this doesn't light the sides of the block.

Anybody know the solutions for this?

Last seen on 23:12, 13. Aug 2023
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well that sucks, no one has…
Fri, 07/23/2021 - 17:38

well that sucks, no one has an answer for 1, i need help with that too...