how to check if certain amount of blocks are broken

Discussion in 'Plugin Development' started by dxrknez, Mar 26, 2018.

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

    dxrknez

    im making a prison server but i dont want mines to reset every 5 minutes. But instead i want to check if certain blocks are mined then i can reset.. which would be more efficient way?
     
  2. Online

    timtower Administrator Administrator Moderator

    @dxrknez Get the entire area, get the total amount of blocks, check how many are air.
     
  3. I'm sure timtower meant this but it should be clear that you calculate the number of blocks in the mine as counting would be greatly inefficient in most cases
     
    dxrknez likes this.
  4. Offline

    dxrknez

    how would I count the blocks inside the mine, exactly?
     
  5. Online

    timtower Administrator Administrator Moderator

    That triple loop that you can also use for setting the blocks.
     
Thread Status:
Not open for further replies.

Share This Page