Chunk rollback tool for Minecraft
chrbstands for CHunk Roll Back
chrb is a high-performance command-line tool designed to restore specific areas of a Minecraft world from a backup.
Unlike traditional restoration methods that require replacing entire region or world files, the tool allows you to pinpoint exact chunk coordinates to roll back.
This is useful for fixing localized griefing, corrupted chunks, or reversing accidental changes in a specific district while keeping the rest of your world's progress intact.
- High Performance: Leverages multi-threaded processing and hybrid restoration to handle gigabytes of world data in seconds
- Hybrid Restoration: Automatically switches between fine grained chunk-level updates and fast region-level file replacement based on the requested area
- Atomic Safety: Uses temporary file staging and atomic renaming to prevent world corruption even if the process is interrupted
- Comprehensive Support: Granular control over different data types, including Terrain (
region), Entities (entities), and Point of Interest (poi)
(To run, replace [options] with proper configuration)
Install from GitHub Release Page
./chrb [options]xmake config -c -y -m release
xmake build chrb
# A: run with xmake
xmake run chrb [options]
# B: install to the directory you like and run it
xmake install --installdir="./install"
./install/bin/chrb [options]
# C: install to your system and run it
sudo xmake install --root # linux / macos
chrb --version # check if installed
chrb [options]
If you haven't installed chrb, see Installation
You need 2 minecraft worlds: the destination world and the source world (your backup).
Hereafter,
Assumed situation:
ls ./my_backup
# entities poi region
ls ./my_world
# advancements DIM-1 level.dat_old poi
# serverconfig data DIM1 icon.png
# region session.lock carpet.conf datapacks
# entities level.dat playerdata statschrb --src ./my_backup --dest ./my_world --min_x -3 --min_z 2 --max_x 5 --max_z 4Note
Chunk range is inclusive, so
Rollback only entities in
chrb --src ./my_backup --dest ./my_world --dim nether --type=entities --min_x 35 --min_z 25 --max_x 50 --max_z 75 -j 8 --verboseRollback all(region/entities/poi) in
chrb --src ./my_backup --dest ./my_world --dim end --type=all --min_x -1 --min_z -2 --max_x 3 --max_z 4 -j 16- Multiple values specification like a
--type=region,entitiesis currently not supported.
chrb
=-=-= chunk rollback tool for minecraft =-=-=
Usage: chrb [Options]
Options:
-s, --src <path> source world directory [required]
-d, --dest <path> destination world directory [required]
-D, --dim <overworld|nether|end> target dimension (default: overworld) [optional]
-t, --type <region|entities|poi|all> rollback type (default: all) [optional]
-c, --color <auto|always|never> color mode (default: auto) [optional]
-x, --min_x <n> minimum chunk x coordinate [required]
-X, --max_x <n> maximum chunk x coordinate [required]
-z, --min_z <n> minimum chunk z coordinate [required]
-Z, --max_z <n> maximum chunk z coordinate [required]
-j, --num_threads <n> number of worker threads (default: half of num threads on your hardware) [optional]
-b, --bulk_copy use bulk copy for full region rollback [optional]
-S, --silent disable information logging [optional]
-V, --verbose enable verbose output [optional]
-h, --help print this help message [optional]
-v, --version print version [optional]
Caution
Always create backup of your world and ensure the Minecraft server is stopped before running this tool.
Direct manipulation of MCA files carries inherent risks, and I'm not responsible for any harm caused by this tool.
See ARCHITECTURE.md.
- 1.21.1
Copyright © 2026 pugur
This project is licensed under the Apache License, Version 2.0 which can be found in the LICENSE file.