Intercooler
Shrink your Minecraft world to about a third of its size, without slowing the server down. Server-side, works with vanilla clients and in singleplayer.
Intercooler replaces Minecraft's region file format with a compact, compressed one. It was built for Turbocharged Terrain Diffusion, whose huge worlds fill up disks fast, but it works with any Fabric world.
It is a fork of LinearReader by Bugfunbug. It keeps LinearReader's region cache, backups, chunk pruning and commands, and replaces the storage format and compression with a faster, smaller two-tier design.
Back up your world before installing. Intercooler replaces Minecraft's storage engine. It is a beta.
How much smaller?
Measured on a 9,409-chunk Terrain Diffusion world (overworld region folder):
| Format | Size | Smaller than vanilla by |
|---|---|---|
Vanilla (Anvil .mca) |
124.1 MB | 1.00x |
| LinearReader 1.3.1 | 77.0 MB | 1.61x |
| LinearReader 1.3.1, after AFK compress | 52.9 MB | 2.35x |
| Intercooler, while playing | 70.6 MB | 1.76x |
| Intercooler, after idle recompression | 44.8 MB | 2.77x |
| Intercooler, idle + light stripping | 28.7 MB | 4.33x |
A fresh Chunky pre-generation of 2,601 chunks took 15.8 MB with Intercooler versus 34.1 MB in vanilla, with the same tick times. Reloading those chunks was faster too (7 s versus 12 s).
Features
Two-tier compression
- Hot tier (while you play): every chunk is compressed on its own with zstd and a dictionary trained on Terrain Diffusion terrain that ships in the jar. Only chunks that changed are recompressed when a region saves, so saving is cheap even for regions loaded for hours.
- Cold tier (when the server is idle): after 20 idle minutes, or when you run the command, whole regions are rewritten on low-priority background threads. Chunk data is split into columns, block palettes are shared across the region, and the result is compressed at zstd level 22. Every cold region is decoded and checked byte for byte before it replaces the old file.
- Optional light stripping: cold regions can drop stored light data, which Minecraft rebuilds when the chunks next load. This makes cold worlds about 40% smaller again, at the cost of a slightly slower first load.
Never on the main thread
All compression, decompression and recompression happens on background threads. Old .mca worlds are converted in the background. Dirty regions save in the background on both servers and singleplayer. In testing, a full cold pass over a 9,409-chunk world never pushed average tick time above 0.4 ms, and /save-all flush finished about three times faster than vanilla.
Crash safe
Every region write goes to a temporary file, is flushed to disk, then replaces the old file with an atomic rename. A crash or power cut leaves either the old region or the complete new one, never a half-written file.
Safe with Chunky
Regions serialize their own saves, and cold rewrites only replace a file if nothing saved it in the meantime, so Chunky's bursts of saves are safe. A stress test with several writers and a recompressor hammering one region checks that the newest version of every chunk always wins.
Automatic backups
Intercooler keeps a .linear.bak restore copy of each region in a backups/ folder next to it, refreshed after enough changes once the region goes quiet.
Easy in, easy out
- Existing vanilla worlds and LinearReader worlds are converted automatically as regions are saved.
- To leave, export the world back to vanilla
.mcafiles with one command.
Requirements
| Minecraft | 26.3 |
| Mod loader | Fabric Loader 0.20.1 or newer |
| Required mod | Fabric API |
| Java | 25 or newer |
Intercooler is server-side. On a dedicated server, only the server needs it, and players join with any client. For singleplayer, install it in your game's mods folder.
Do not install it together with LinearReader. Intercooler replaces it.
How to install
- Back up your world.
- Install Fabric Loader for Minecraft 26.3 and put Fabric API in your
modsfolder. - Put the Intercooler jar in the
modsfolder (on the server, the server'smodsfolder). Remove LinearReader if you had it. - Start the game or server. Regions are converted to Intercooler's format as they are saved.
- Optional: to compress the whole world right away instead of waiting for idle time, run
/intercooler afk-compress zstd start.
Removing Intercooler
- Run
/intercooler export-mca startand wait for it to finish (check with/intercooler export-mca). - Stop the game or server.
- Replace the world's region files with the exported
.mcafiles from the<worldname>_mca_exportfolder. - Remove the Intercooler jar.
Older LinearReader versions cannot read Intercooler files, so always export before removing it.
Commands
All commands need operator permission (level 2) and start with /intercooler.
Status and information
| Command | What it does |
|---|---|
/intercooler health |
Shows the storage health summary: compression mode and level, how busy the server is, idle time, maintenance backlog, and backup and compression debt. |
/intercooler health debug |
The same, with full internal details. |
/intercooler storage |
Shows how much disk space the world's region files and backups use. |
/intercooler cache_info |
Shows how many regions are open in memory, how many have unsaved changes, and roughly how much RAM their chunk data uses. |
/intercooler pos |
Shows your block, chunk and region coordinates, the region file you are in, and whether it is cached. |
Compression
| Command | What it does |
|---|---|
/intercooler afk-compress |
Shows the progress of idle (cold) recompression. |
/intercooler afk-compress zstd start [dimension] |
Starts cold recompression of the whole world now, or one dimension, instead of waiting for the server to go idle. |
/intercooler afk-compress brotli start [dimension] |
The same, using Brotli instead of zstd. |
/intercooler afk-compress stop |
Stops recompression. Finished regions are kept. |
/intercooler save-all [zstdLevel] |
Immediately saves every region with unsaved changes in one pass, and only reports success when all of them are on disk. With a level from 1 to 22, that save uses that compression level (just this once). |
Memory
| Command | What it does |
|---|---|
/intercooler clear-cache |
Saves any unsaved regions, then frees the chunk data held in RAM. Nothing is lost; regions reload from disk when needed. |
/intercooler pin [rx rz] |
Keeps a region in memory so it is never unloaded from the cache. Without coordinates it pins the region you are standing in. Useful for spawn or a busy base. |
/intercooler unpin [rx rz] |
Removes a pin. |
/intercooler pins |
Lists pinned regions. |
Maintenance
| Command | What it does |
|---|---|
/intercooler verify |
Checks every region file and backup on a background thread and reports any problems. |
/intercooler verify deep |
A slower, more thorough check that decodes every chunk. |
/intercooler prune-chunks |
Dry run: finds chunks that were generated but barely visited (under 1 minute of player time, in regions untouched for 12 hours) and reports how many would be removed. Nothing is deleted. |
/intercooler prune-chunks confirm |
Deletes the chunks found by the dry run. Must be run within 60 seconds of it. They regenerate if someone goes there again. |
/intercooler sync-backups |
Dry run: compares the .linear.bak backups with the current world and reports which would be refreshed or removed. |
/intercooler sync-backups confirm |
Applies those backup changes. Must be run within 60 seconds of the dry run. |
/intercooler export-mca |
Shows the progress of an export. |
/intercooler export-mca start |
Exports the whole world to vanilla .mca files in a <worldname>_mca_export folder. Your world files are not touched. |
/intercooler export-mca stop |
Stops the export. Already exported files are kept. |
Benchmarking
| Command | What it does |
|---|---|
/intercooler bench |
Shows read, write, cache and timing statistics since the last reset. |
/intercooler bench debug |
The same, with more detail. |
/intercooler bench reset |
Turns statistics on and starts a fresh measuring window. |
/intercooler graph <seconds\|until-stopped> <interval> [single-graph\|multiple-graphs] <stat> [stat2 ...] |
Records statistics over time and draws graphs. Example: /intercooler graph 300 10 chunk_read_avg_ms quietness_score. |
/intercooler graph status |
Shows the running graph recording. |
/intercooler graph stop |
Stops recording. |
Voxy (singleplayer)
| Command | What it does |
|---|---|
/intercooler voxy-compat |
Shows the state of the Voxy import helper. |
/intercooler voxy-compat auto |
Imports the current singleplayer world into Voxy LODs. Voxy can't read Intercooler files directly, so this feeds them to it. Only works in singleplayer with Voxy installed. |
Configuration
Settings are in config/intercooler-server.toml, created on first start. They can also be changed in game through Mod Menu if you have it. The main ones:
| Setting | Default | What it does |
|---|---|---|
compressionLevel |
7 |
zstd level for chunks saved while playing. |
hotDictionary |
true |
Use the built-in dictionary for those chunks (smaller files). |
coldCompressionLevel |
22 |
zstd level for idle recompression. |
coldStripLight |
false |
Drop stored light from cold regions for about 40% more savings. |
coldThreads |
1 |
Background threads for idle recompression (1 or 2). |
autoRecompressEnabled |
true |
Recompress automatically when the server is idle. |
idleThresholdMinutes |
20 |
How long the server must be idle before cold recompression starts. |
regionCacheSize |
128 |
How many regions to keep open in memory. |
backupEnabled |
true |
Keep .linear.bak backups of each region. |
backupMaxAgeMinutes |
30 |
Refresh a changed region's backup at least this often. |
pruneMaxInhabitedTimeTicks |
1200 |
Chunks with less player time than this (1200 ticks = 1 minute) can be pruned. |
pruneMinRegionQuietHours |
12 |
Only prune in regions that haven't changed for this many hours. |
Recommended mods
Required
Recommended
- Turbocharged Terrain Diffusion (by me): real-world-scale AI terrain. Intercooler's built-in dictionary was trained on its worlds, so it compresses them best.
- Chunky: pre-generate your world. Intercooler is tested with it and handles its bursts of saves safely.
Optional
- Mod Menu: change Intercooler's settings in game.
- Voxy: distant LOD rendering. Use
/intercooler voxy-compat autoto import your world.
Not compatible
- LinearReader: Intercooler is its replacement. Don't install both.
- Tools that read region files directly (map editors, world viewers, some backup tools) expect vanilla
.mcafiles. Use/intercooler export-mca startto get a copy they can read.
Credits and license
- Fork of LinearReader by Bugfunbug (MIT).
- Built on Xymb's Linear Region File Format (BSD-2-Clause).
- Uses Zstandard and zstd-jni (BSD) and Brotli / brotli4j (MIT / Apache-2.0).
This fork isn't affiliated with or endorsed by the original authors or by Mojang or Microsoft. Licensed under MIT.
Source code: github.com/RyanMichalak9808/Intercooler
AI disclaimer
The changes in this fork were made by AI. I used an AI coding assistant (Claude Code) to write the code and documentation for Intercooler. I guided it, set the goals and decide what goes in. I'm not a professional modder. LinearReader's own code was also written with AI tools, as its author explained.
I don't make any money from this. No ads, paid tiers or donations. It's free.
Expect bugs, back up your worlds, and please report problems. The full disclaimer is in AI_USAGE.md.