Getting all of the blocks in an ore vein

Discussion in 'Plugin Development' started by bobacadodl, Nov 22, 2012.

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

    bobacadodl

    I am having some trouble creating code to get all of the blocks in an ore Vein. I have one block, and I want to get a List<Block> of all of the blocks in that ore vein.
     
  2. Offline

    RealDope

    You'll have to iterate through all the blocks around it checking if they are iron ore. I'd suggest just doing like a 5 block radius since there are the occasional veins with blocks that don't touch.

    This thread should have something on recursive methods for blocks:

    http://forums.bukkit.org/threads/getting-an-entire-tree.102855/
     
  3. Offline

    bobacadodl

    Thanks a lot for the help! P.S. Remember to tag/quote someone so that they get a notification :)
     
  4. Offline

    desht

    You should probably change your preferences so you automatically watch any threads you start.
     
    bobacadodl likes this.
  5. Offline

    bobacadodl

    Thanks! Didn't know you could do that :D
     
  6. Offline

    andf54

  7. Offline

    bobacadodl

    Thanks! Finally got this working. (Using recursive methods)
     
Thread Status:
Not open for further replies.

Share This Page