mcbe-structure-extract
v1.0.3
Published
Extract .mcstructure files from Minecraft Bedrock worlds (.mcworld or world folder)
Maintainers
Readme
mcbe-structure-extract
A simple CLI tool to extract .mcstructure files from Minecraft Bedrock Edition worlds
directly from LevelDB.
Works with:
.mcworldfiles (compressed)- Bedrock world folders (containing
level.datanddb/)
Supports Android / Termux, Linux, macOS, and Windows.
Features
- Extract
.mcstructuredirectly from Bedrock LevelDB - Output organized by namespace
- Works without Amulet or native LevelDB bindings
- CLI-friendly and scriptable
- Global install via npm
Installation
Global install (recommended)
npm install -g mcbe-structure-extractUsage
mcbe-structure-extract <input> [--output <dir>]Arguments
input (required)
Path to:
- a
.mcworldfile - OR a Bedrock world folder containing:
- level.dat
- levelname.txt
- db/
--output (optional)
Base output directory.
If omitted, output will be created in the current directory.
Output Structure
Structures are saved under a structures/ folder, organized by namespace.
Example:
structures/
├── minecraft/
│ └── village_house.mcstructure
├── mystructure/
│ └── house.mcstructure
└── custom/
└── loader_v2.mcstructureExamples
Extract from .mcworld
mcbe-structure-extract world.mcworldOutput:
./structures/Extract from world folder
mcbe-structure-extract /sdcard/worlds/MyWorldCustom output directory
mcbe-structure-extract world.mcworld --output /sdcard/exportOutput:
/sdcard/export/structures/How It Works
This tool:
- Reads Bedrock LevelDB data using
mcbe-leveldb-reader - Detects structure entries using the
structuretemplate_key prefix - Extracts raw structure bytes
- Writes valid
.mcstructurefiles
Notes
- This tool only extracts saved structures (via
/structure saveor Structure Block) - It does not extract arbitrary builds from chunks
License
MIT License
