Getting Blocks Near by

Discussion in 'Plugin Development' started by Kodfod, Jul 15, 2012.

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

    Kodfod

    How would i get blocks in an x radius of a player ?

    What i'm trying to do is player types /sample, it counts how many times they have done this, and the more they do it, the deeper it goes. Then it would respond saying:
    "Iron: 5, Gold:0, Diamond: 0, Coal: 12"
     
  2. you need to get an cuboid, and you need to cound how manny those blocks there are, I cant give you code now, because I lost this example from my code database
     
  3. Offline

    Kodfod

    Okay, If anyone can get me a code example, that would be awesome!
     
  4. Offline

    Firefly

    You have a code database? No wonder you can respond so fast...
     
  5. Offline

    Kodfod

    I still need a way to do this, haven't figured this out

    If some one knows the answer please so kind as to post it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  6. Offline

    r0306

  7. Offline

    Kodfod

    r0306
    Thanks! This helped me a lot
     
  8. Offline

    r0306

Thread Status:
Not open for further replies.

Share This Page