how do i make a block that detects a structure in the surroundings

Started by comedious on

Topic category: Help with modding (Java Edition)

Last seen on 22:52, 5. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i make a block that detects a structure in the surroundings

i'm making a conduit-like block that detects blocks around it in a certain way and i can't figure out how to do this easily. what i've tried is making it detect every single coordinate that the blocks are supposed to be in for it to work, but the script is massive and too big to troubleshoot, since it doesn't work. is there any way to do this easily?

Last seen on 17:20, 17. Oct 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, you have to do it…
Sat, 07/20/2024 - 16:29

No, you have to do it detecting blocks at every single coordinate, I suggest you to make a drawing or a 3d model to make it easier before making the procedure 

Last seen on 22:52, 5. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
alright, thank you. i didn't…
Sat, 07/20/2024 - 17:09

alright, thank you. i didn't actually think of drawing it

Last seen on 17:20, 17. Oct 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome
Sat, 07/20/2024 - 17:16

You're welcome