You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,21 +19,31 @@ Of course, this mod can also be used independently. As long as you can generate
19
19
* Import blocks in bulk from JSON files located in the `config/mybuilds/` directory.
20
20
* Players can use the `builder:anchor_block` to set the origin and orientation of the relative coordinate system, allowing precise control over the placement and facing of imported blocks.
21
21
* Supports undo functionality to prevent mistakes. You can undo up to the last 3 build operations.
22
+
* Supports exporting blocks from the current world to JSON files.
22
23
23
24
## Usage
24
25
25
26
1. Create a specially formatted JSON file under the `config/mybuilds/` directory, e.g. [`example.json`](./example.json)
26
-
27
+
* You can use [**Minecraftify2.0**](https://github.com/Ivans-11/Minecraftify2/releases) to generate JSON files from 3D models. See its [repository documentation](https://github.com/Ivans-11/Minecraftify2) for details.
28
+
* You can also use the `/builder save` command to export JSON files from the current world. See the following content for specific usage.
* Keys are block IDs, and values are arrays of relative coordinates.
35
-
* You can use [**Minecraftify2.0**](https://github.com/Ivans-11/Minecraftify2/releases) to generate JSON files from 3D models. See its [repository documentation](https://github.com/Ivans-11/Minecraftify2) for details.
36
-
* You can also use the `/builder save` command to export JSON files from the current world. See the following content for specific usage.
38
+
* Each element in the relative coordinate array represents a block's relative coordinates, in the format `[x, y, z, w]`.
39
+
*`x` represents the offset in the x-axis relative to the origin.
40
+
*`y` represents the offset in the y-axis relative to the origin.
41
+
*`z` represents the offset in the z-axis relative to the origin.
42
+
*`w` is an optional parameter, used to specify the direction of blocks with direction attributes.
43
+
* When positive, it represents the horizontal direction. The corresponding numeric values correspond to the following image (for example, stairs):
44
+

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

37
47
38
48
2. Place a `builder:anchor_block` in the game world to define the reference origin and orientation.
39
49
@@ -62,7 +72,9 @@ Of course, this mod can also be used independently. As long as you can generate
62
72
/builder save <x> <y> <z> <name>
63
73
```
64
74
Where `<x> <y> <z>` represents the selected area range.
75
+
65
76
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.
77
+
66
78
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.
67
79
68
80
## Command List
@@ -92,7 +104,7 @@ Of course, this mod can also be used independently. As long as you can generate
92
104
93
105
* Undo only applies to blocks placed using the `/builder place` command, and does not affect manually placed blocks.
94
106
95
-
* Since JSON files only record the relative coordinates of blocks, it is not possible to import some special blocks (such as stairs, doors, etc., which contain more information) accurately.
107
+
* Since JSON files only record the relative coordinates of blocks, it is not possible to import some special blocks (such as buttons, doors, etc., which contain more information) accurately.
0 commit comments