Get the blocks in between set coordinates and the player?

Discussion in 'Plugin Development' started by RandomGuyDom, Nov 23, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    RandomGuyDom

    I was wondering if anyone knew how to get the types of blocks in between the player and a set value of coordinates? I'm not sure if this has been covered in a thread before and if it has then this can be a more updated thread than an older one.

    Thanks! :)
     
  2. Offline

    Gater12

  3. Offline

    RandomGuyDom


    Like a straight line if thats possible....?
     
  4. Offline

    xTrollxDudex

    RandomGuyDom
    Between the player's location and 1 coordinate?
     
  5. Offline

    RandomGuyDom


    For example if the player was at 100, 60, 200 (x, y, z) and the set coordinate was at 200, 60, 200 I would like to get the blocks in between.
     
  6. Offline

    Skionz

    RandomGuyDom Create a for loop that increments x each time, get the location, and do whatever it is you want to do to the block.
     
  7. Offline

    xTrollxDudex

    Triple nested for loop through each coordinate x, y, and z.
     
Thread Status:
Not open for further replies.

Share This Page