A Fabric mod that imports builds in bulk from specially formatted JSON files.
Of course, this mod can also be used independently. As long as you can generate JSON files in the required format, you can import builds with this mod.
Create a specially formatted JSON file under the config/mybuilds/ directory, e.g. example.json
- You can use Minecraftify2.0 to generate JSON files from 3D models. See its repository documentation for details.
- You can also use the
/builder save command to export JSON files from the current world. See the following content for specific usage.
{
"minecraft:stone": [[1, 0, 0],[2, 0, 0],[3, 0, 0]],
"minecraft:oak_planks": [[0, 1, 1],[0, 1, 2]],
"minecraft:spruce_stairs":[[2, 0, 1, 3]],
"minecraft:oak_log":[[3, 0, 1, -3],[4, 0, 1, -1]]
}
- Keys are block IDs, and values are arrays of relative coordinates.
- Each element in the relative coordinate array represents a block's relative coordinates, in the format
[x, y, z, w].
x represents the offset in the x-axis relative to the origin.
y represents the offset in the y-axis relative to the origin.
z represents the offset in the z-axis relative to the origin.
w is an optional parameter, used to specify the direction of blocks with direction attributes.
- When positive, it represents the horizontal direction. The corresponding numeric values correspond to the following image (for example, stairs):

- When negative, it represents the axis direction. The corresponding numeric values correspond to the following image (for example, logs):

Place a builder:anchor_block in the game world to define the reference origin and orientation.

Run the command:
/builder place example
The structure will be generated at the nearest anchor block to the player.

To undo the last operation, run:
/builder undo
This will revert the most recent build (up to 3 steps).
If you need to export a build from the current world, enter:
/builder save <x> <y> <z> <name>
Where <x> <y> <z> represents the selected area range.
The mod will use the nearest anchor block to the player as the starting point (0,0,0) and export the block data in the range from (0,0,0) to (x,y,z) to the config/mybuilds/<name>.json file.
Note that the x-axis corresponds to the red axis, the y-axis corresponds to the green axis, and the z-axis corresponds to the blue axis. The format of the exported JSON file is the same as that of the imported one.