Minecraft – Placing back NBT blocks

minecraft-commandsminecraft-java-edition

I have an adventure map that I'm working on and there are lots of chests with custom items in them. I was trying to make it so that the Map cleans itself up and resets everything itself so i don't have to go and put each custom item back manually. So i was wondering if it was possible to place back all the chests and barrels with command blocks since you can CTRL + Pick Block and get a chest with everything inside it already.

Best Answer

Use /clone to copy a backup room there. Works up to 32768 blocks (for example 32×32×32), for more you need multiple commands.