For a minigame map I am making, I have a large (320*320*116) destructible arena. Players get explosives, blocks, etc. and the entire area can change. At the end of the match, I would like to restore the entire arena to its starting state, so another match can occur.
My old plan was simply to have a backup arena adjacent to the normal one, and then after a match had finished an
ArmorStand would be teleported around, executing a
/clone command with relative coordinates. The problem is that the clone command can only select a relatively tiny area, and takes quite a while for each execution. I estimated that I would need to
/clone 400 times, and each time was taking 10 or so seconds.
Other than having the server reinstall the map each time, are there any more efficient ways I could regenerate the arena? Perhaps detecting only the chunk segments that need to be changed, or undoing each explosion somehow.