Documentation Index
Fetch the complete documentation index at: https://mintlify.com/hivegamesoss/chunker/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheDimension enum and dimension mapping configuration allow you to control how dimensions (Overworld, Nether, The End) are converted between Java and Bedrock editions. You can remap dimensions to different targets or skip conversion of specific dimensions.
Enum: Dimension
Package:com.hivemc.chunker.conversion.intermediate.world
Dimension Values
OVERWORLD
Java ID: 0
Bedrock ID: 0
Identifier:
Bedrock ID: 0
Identifier:
minecraft:overworldNETHER
Java ID: -1
Bedrock ID: 1
Identifier:
Bedrock ID: 1
Identifier:
minecraft:the_netherTHE_END
Java ID: 1
Bedrock ID: 2
Identifier:
Bedrock ID: 2
Identifier:
minecraft:the_endMethods
getJavaID()
The Java ID for the dimension.The ID based on 0 being overworld and -1 being the nether
getBedrockID()
The Bedrock ID for the dimension.The indexed ID for the dimension
getIdentifier()
Get the namespaced identifier for the dimension.The namespaced identifier
Static Factory Methods
fromJava(byte id, Dimension fallback)
Create a dimension from a Java ID.The input Java dimension ID
The fallback to use if the ID wasn’t found
The dimension or fallback if it wasn’t found
fromBedrock(byte id, Dimension fallback)
Create a dimension from a Bedrock ID.The input Bedrock dimension ID
The fallback to use if the ID wasn’t found
The dimension or fallback if it wasn’t found
fromJavaNBT(Tag tag, Dimension fallback)
Get the dimension based on a Java NBT tag.The tag to use (string, byte or integer)
The fallback dimension to use if the tag can’t be parsed or the ID is invalid
The dimension if it was parsed, otherwise the fallback
fromBedrockNBT(Tag tag, Dimension fallback)
Get the dimension based on a Bedrock NBT tag.The tag to use (string, byte or integer)
The fallback dimension to use if the tag can’t be parsed or the ID is invalid
The dimension if it was parsed, otherwise the fallback
Dimension Mapping Configuration
Dimension mappings control how input dimensions are converted to output dimensions. This is configured as a JSON object mapping input dimensions to output dimensions.JSON Format
Usage Examples
Standard Mapping (Default)
Map each dimension to itself:Swap Nether and End
Swap the Nether and The End dimensions:Combine Dimensions
Merge all dimensions into the Overworld:Skip Dimensions
Convert only the Overworld, skip Nether and End:Nether-Only Conversion
Convert only the Nether:CLI Integration
Provide dimension mappings to the CLI using the--dimensionMappings parameter:
Programmatic Usage
Integrate dimension mapping into the WorldConverter:Advanced Example: Conditional Mapping
Dimension IDs Reference
Java and Bedrock use different ID schemes for dimensions. Chunker handles the conversion automatically.
| Dimension | Java ID | Bedrock ID | Identifier |
|---|---|---|---|
| Overworld | 0 | 0 | minecraft:overworld |
| Nether | -1 | 1 | minecraft:the_nether |
| The End | 1 | 2 | minecraft:the_end |
Common Use Cases
Server Migration
When migrating a server from Java to Bedrock, keep all dimensions:Creative World Export
Export only the Overworld for a creative build:Custom Dimension Layouts
For custom modpack/plugin worlds with alternative dimension usage:Combining with Pruning
Dimension mappings work together with pruning configurations:Best Practices
Keep dimension consistency
Keep dimension consistency
Avoid mapping multiple input dimensions to the same output dimension unless you understand the coordinate implications.
Test with backups
Test with backups
Always test dimension mappings on backup worlds first, as incorrect mappings can corrupt world data.
Consider cross-dimension features
Consider cross-dimension features
Remember that portals and other cross-dimension features may not work correctly with custom mappings.
Document custom mappings
Document custom mappings
If using non-standard dimension mappings, document why for future reference.
Limitations
Related APIs
MappingsFile
Custom block and item mappings
Pruning Config
Control which regions to keep or remove