getting the block connected to a specific face of a block for energy cables

Started by siren on

Topic category: Help with modding (Java Edition)

Last seen on 06:44, 10. Oct 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
getting the block connected to a specific face of a block for energy cables

so I'm working on a mod that has, among other things, custom energy cables. how would I go about having the cable only output to the block it's facing? like, get a specific block connected to it, but relative to what direction the block is facing instead of X , Y, Z+1 because XYZ is global and not relative.