Block regen.

Discussion in 'Plugin Development' started by krists23, Sep 29, 2013.

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

    krists23

    Hey,
    If someone knows how to regen arena after minigame ends please tell me. :)
     
  2. Offline

    sharp237

    You could either completely reset the world, hook into worldedit and use schematics, or save the arena in an array with blocks and their location and then replace the arena.
     
  3. Offline

    tylersyme

    What I do is I make a template of the chunks that I want to restore. Basically I make a copy of the chunks in another location, and then when the map is destroyed, I take the old destroyed arena and copy the template over it
     
  4. Offline

    krists23

    Can you show me it in code im new to codding :)
     
  5. Offline

    Ultimate_n00b

    Store the blocks & blockstate in a HashMap, then set the blockstate to the stored one when you reset.
     
    Yazan likes this.
Thread Status:
Not open for further replies.

Share This Page