Blocks?

Discussion in 'Plugin Development' started by Wantsome909, Aug 19, 2013.

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

    Wantsome909

    can you destroy block in the world?
     
  2. Offline

    DrTURTLE2

  3. Offline

    Wantsome909

    is it possible to delete block with a timer in the world...
     
  4. Offline

    The_Doctor_123

    Destroy, as in set it to air?

    Code:
    location.setType(Material.AIR);
    
     
  5. Offline

    Wantsome909

    The_Doctor_123 like survival games after a game over it resets and put block backs.
     
  6. Offline

    JPG2000

    Wantsome909 Um, I think how they do it is load the world from a file. it would be SO insanly hard to repace evrry block. And consideringt eh map may change etc
     
  7. Offline

    The_Doctor_123

    And where did you put that in your topic so people would know how to help you? As for the issue, you can create an ArrayList of broken block locations and IDs and put them all back when the game ends. Too busy to whip up some code, though.

    EDIT: OR you could possibly load two duplicate worlds and use that world for reference when restoring. It would be more accurate.
     
  8. Offline

    Wantsome909

    well can you just delete block that someone place.
    like after 30mins delete every glass.
     
Thread Status:
Not open for further replies.

Share This Page