Minecraft Structure Editor
A Visual Studio Code extension that allows you to edit Minecraft .mcstructure files as human-readable JSON format.
Features
- Convert .mcstructure to JSON: Open Minecraft structure files as editable JSON
- Save JSON back to .mcstructure: Convert your edited JSON back to the binary structure format by pressing the save button
Usage
Opening .mcstructure Files
There are several ways to open a .mcstructure file for editing:
Method 1: Default Editor (Recommended)
- Simply click on any
.mcstructure file in the Explorer
- The extension will automatically convert it to JSON and open it in the editor
- You'll see a loading message briefly, then the JSON content will appear
- Right-click on a
.mcstructure file in the Explorer
- Select "Open MCStructure as JSON" from the context menu
- The file will be converted and opened as JSON
Method 3: Command Palette
- Open the Command Palette (
Ctrl+Shift+P )
- Type and select "MCStructure: Open MCStructure as JSON"
- Choose your
.mcstructure file from the file dialog
Saving Changes
To save your edited JSON back to the original .mcstructure format:
- Click the "Save as MCStructure" button in the editor title bar (looks like a save icon)
- Or use the Command Palette (
Ctrl+Shift+P ) and select "MCStructure: Save as MCStructure"
Requirements
- Visual Studio Code version 1.22.0 or higher
- Node.js (for development)
Development
Building the Extension
npm i
npm run compile
or
npm run watch
Running in Development
- Open the project in VS Code
- Press
F5 to start debugging
- A new Extension Development Host window will open with the extension loaded
Dependencies
- prismarine-nbt: Used for reading and writing NBT data from Minecraft files
License
MIT
Support
If you encounter any issues or have suggestions:
- Check the Issues page for existing reports
- Create a new issue with detailed information about the problem
| |