Spawn Protection
A reset regenerates the whole world, terrain and all. Spawn protection is how you keep one part of it: the plugin copies a region to a small schematic before the reset, then pastes it back into the new world at the same coordinates.
How it works
zResetMap uses its own lightweight schematic format, a gzipped file holding a block palette and relative coordinates. There is no WorldEdit or FAWE dependency. The saved file lives at spawn-region.save-path, one per world.
The region is a box defined by two corners. Whatever blocks sit inside that box get saved and restored.
Set it up
Stand in the world and mark two opposite corners of the region you want to protect, then save:
/zrm setspawncorner1 nether
/zrm setspawncorner2 nether
/zrm savespawn nether
The corners write to spawn-region.corner1 and corner2 in the config. You can also type the coordinates in by hand.
|
Make the box a little bigger than the build itself so nothing gets clipped. Include the floor players stand on. |
Where it pastes back
paste-at-corner1 controls the paste position:
|
The build pastes back exactly where you saved it. This is what you want almost every time. |
|
The build pastes at |
Before pasting, the plugin force-loads every chunk the region touches, so a freshly generated world can never leave part of the build unpasted.