Hi!
I am totally new to all this
First of all i want to tell you that my English is not really good. so please don't hate
I wonder how i can check if a cable is connected to a specific block.
I don't know if there is already a way to do it or if i have to do it from scratch because i didn't found anything about this.
So maybe that doesn't make any sense but i had some ideas how i could do it:
I created a cable block and a method to get a list of the blocks next to it (to check if they are connected to another cable block)
So my idea was to get the blocks next to every cable block i find and add the blocks coordinates to a list.
I wanted to repeat this again and again till there are no more cable blocks connected that aren't in the list.
And then when this is done i wanted to check if one of this cables is next to the target block.
Does this make any sense or is there a much better and easier way to do it?
And if not how can i do the way that i explained?
I am happy about every help
thank you in advance
- MrFincher