1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

Finding neighbors of a block

Discussion in 'Modding API' started by beelzerob, Apr 4, 2018.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. beelzerob

    beelzerob Apprentice Engineer

    Messages:
    429
    Is there some mechanism for finding the neighbors of an arbitrary block.

    1) Blocks that occupy physical space immediately adjacent to the block, regardless of its size.
    2) Blocks that are physically connected (usually a conveyor)

    Thanks.
     
  2. Digi

    Digi Senior Engineer

    Messages:
    2,393
    IMySlimBlock has a Neighbours list, I dunno if it works with larger blocks, print the list and see :p
     
  3. beelzerob

    beelzerob Apprentice Engineer

    Messages:
    429
    Excellent, thank you!
     
Thread Status:
This last post in this thread was made more than 31 days old.