check if player is standing near a block?

Discussion in 'Plugin Development' started by Alkerti, Sep 15, 2013.

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

    Alkerti

    I want to know if you can detect a player that is standing near a certain block, such as fire.
     
  2. Offline

    caseif

    Iterate the blocks within a certain radius of them on all three axes through the use of nested for-loops. For example, you could iterate from -5 to 5 and add each value to the players location on a given axis to search in a 5-block radius.
     
  3. Offline

    Alkerti


    Thanks.
     
Thread Status:
Not open for further replies.

Share This Page