Overview
Chunker can be run as a command-line application for automated world conversions. The CLI is ideal for batch processing, server automation, or integration into build pipelines.Requirements
- Java 17 or higher
- Chunker CLI jar file (download from releases)
Basic Usage
The CLI requires three mandatory parameters to convert a world:Command Output
When running a conversion, you’ll see output like:Required Parameters
Input Directory (
--inputDirectory)The path to the input world directory. Can be relative to the application or an absolute path.Output Directory (
--outputDirectory)The path where the converted world will be saved. The directory will be created if it doesn’t exist.Output Format (
--outputFormat)The target Minecraft version to convert to, in the format EDITION_X_Y_Z.Examples:JAVA_1_20_5- Java Edition 1.20.5BEDROCK_1_19_30- Bedrock Edition 1.19.30JAVA_1_20- Java Edition 1.20.x (latest patch)BEDROCK_1_21- Bedrock Edition 1.21.x (latest patch)
Optional Parameters
Block Mappings (
--blockMappings)Custom block mappings as either a JSON file path or inline JSON object. This allows you to override how specific blocks are converted.World Settings (
--worldSettings)World settings as a JSON file path or inline JSON object. Configure world properties like spawn point, game mode, difficulty, etc.Pruning Settings (
--pruning)Pruning configuration as a JSON file path or inline JSON object. Define which chunks to exclude from conversion.Converter Settings (
--converterSettings)Converter settings as a JSON file path or inline JSON object. Control conversion behavior like item conversion, map conversion, and more.Dimension Mappings (
--dimensionMappings)Dimension mappings as a JSON file path or inline JSON object. Map input dimensions to output dimensions (e.g., Overworld, Nether, End).Keep Original NBT (
--keepOriginalNBT)Preserves original NBT data from input to output where possible. Only supported when the output format matches the input edition (e.g., Java to Java).Display help information and available options.
Display the Chunker version.
Advanced Usage
Listing Available Formats
To see all supported output formats, provide an invalid format:Using Preloaded Settings
Chunker can automatically load settings from the input world directory. Place any of these files in the same directory aslevel.dat:
block_mappings.chunker.jsonconverter_settings.chunker.jsondimension_mappings.chunker.jsonpruning.chunker.jsonworld_settings.chunker.json
Complete Example with All Options
Memory Configuration
For large worlds, you may need to allocate more memory to the Java process:Exit Codes
Exit Code Reference
Exit Code Reference
0- Conversion completed successfully1- Conversion failed with an exception12- Out of memory error
Examples
- Java to Bedrock
- Bedrock to Java
- Version Upgrade
- With Custom Settings
Convert a Java Edition world to Bedrock Edition:
Compaction Signal
When converting to Bedrock Edition with compaction enabled, you’ll see additional output:Troubleshooting
Failed to find suitable reader for the world
Failed to find suitable reader for the world
This error occurs when Chunker cannot detect the world format. Ensure:
- The input directory contains a valid
level.datfile - The world is from a supported Minecraft version
- The world files are not corrupted
Failed to find suitable writer for the world
Failed to find suitable writer for the world
This occurs when the output format is invalid. Check:
- The format string follows the
EDITION_X_Y_Zpattern - The version is supported (see Supported Versions)
- You’re using the correct edition name (JAVA or BEDROCK)
Out of memory error (exit code 12)
Out of memory error (exit code 12)
The conversion ran out of memory. Try:
- Increasing the heap size with
-Xmx(e.g.,-Xmx16G) - Using pruning to reduce the world size
- Converting on a machine with more RAM
- Closing other applications to free up memory
Original NBT not available error
Original NBT not available error
The
--keepOriginalNBT flag is only supported when converting within the same edition (Java to Java or Bedrock to Bedrock). Remove the flag for cross-edition conversions.Integration with Scripts
Bash Script Example
Windows Batch Script Example
See Also
- Desktop App Usage - GUI-based world conversion
- Supported Versions - Complete list of supported Minecraft versions
- GitHub Releases - Download the latest version