get all blocks in an explosion

Discussion in 'Plugin Development' started by boardinggamer, Jan 2, 2013.

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

    boardinggamer

    Using getBlockList in the entityexplosion event only gets the blocks that can break and not ALL the blocks. how would I get all the blocks from the explosion radius?
     
  2. Offline

    Nitnelave

    Well, I see two solutions. The API doesn't allow this, so you'll have to do it by hand. Either you are satisfied by getting all the blocks in the radius of the explosion, and you could even calculate the radius of the explosion from the blocks actually exploded.
    Or you could copy the relevant parts of the implementation of the explosion to re-calculate the affected blocks.
     
Thread Status:
Not open for further replies.

Share This Page