3 For more information, see the [README](README.md).
\r
5 ### worldedit.volume(pos1, pos2)
\r
7 Determines the volume of the region defined by positions `pos1` and `pos2`.
\r
11 ### worldedit.set(pos1, pos2, nodename)
\r
13 Sets a region defined by positions `pos1` and `pos2` to `nodename`. To clear to region, use "air" as the value of `nodename`.
\r
15 Returns the number of nodes set.
\r
17 ### worldedit.replace(pos1, pos2, searchnode, replacenode)
\r
19 Replaces all instances of `searchnode` with `replacenode` in a region defined by positions `pos1` and `pos2`.
\r
21 Returns the number of nodes replaced.
\r
23 ### worldedit.hollow_sphere = function(pos, radius, nodename)
\r
25 Adds a hollow sphere at `pos` with radius `radius`, composed of `nodename`.
\r
27 Returns the number of nodes added.
\r
29 ### worldedit.sphere = function(pos, radius, nodename)
\r
31 Adds a sphere at `pos` with radius `radius`, composed of `nodename`.
\r
33 Returns the number of nodes added.
\r
35 ### worldedit.hollow_cylinder(pos, axis, length, radius, nodename)
\r
37 Adds a hollow cylinder at `pos` along the `axis` axis ("x" or "y" or "z") with length `length` and radius `radius`, composed of `nodename`.
\r
39 Returns the number of nodes added.
\r
41 ### worldedit.cylinder(pos, axis, length, radius, nodename)
\r
43 Adds a cylinder at `pos` along the `axis` axis ("x" or "y" or "z") with length `length` and radius `radius`, composed of `nodename`.
\r
45 Returns the number of nodes added.
\r
47 ### worldedit.pyramid(pos, height, nodename)
\r
49 Adds a pyramid at `pos` with height `height`.
\r
51 Returns the number of nodes added.
\r
53 ### worldedit.spiral(pos, width, height, spacer, nodename)
\r
55 Adds a spiral at `pos` with width `width`, height `height`, space between walls `spacer`, composed of `nodename`.
\r
57 Returns the number of nodes added.
\r
59 ### worldedit.copy(pos1, pos2, axis, amount)
\r
61 Copies the region defined by positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z") by `amount` nodes.
\r
63 Returns the number of nodes copied.
\r
65 ### worldedit.move(pos1, pos2, axis, amount)
\r
67 Moves the region defined by positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z") by `amount` nodes.
\r
69 Returns the number of nodes moved.
\r
71 ### worldedit.stack(pos1, pos2, axis, count)
\r
73 Duplicates the region defined by positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z") `count` times.
\r
75 Returns the number of nodes stacked.
\r
77 ### worldedit.transpose(pos1, pos2, axis1, axis2)
\r
79 Transposes a region defined by the positions `pos1` and `pos2` between the `axis1` and `axis2` axes ("x" or "y" or "z").
\r
81 Returns the number of nodes transposed.
\r
83 ### worldedit.flip(pos1, pos2, axis)
\r
85 Flips a region defined by the positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z").
\r
87 Returns the number of nodes flipped.
\r
89 ### worldedit.rotate(pos1, pos2, angle)
\r
91 Rotates a region defined by the positions `pos1` and `pos2` by `angle` degrees clockwise around the y axis (supporting 90 degree increments only).
\r
93 Returns the number of nodes rotated.
\r
95 ### worldedit.dig(pos1, pos2)
\r
97 Digs a region defined by positions `pos1` and `pos2`.
\r
99 Returns the number of nodes dug.
\r
101 ### worldedit.serialize(pos1, pos2)
\r
103 Converts the region defined by positions `pos1` and `pos2` into a single string.
\r
105 Returns the serialized data and the number of nodes serialized.
\r
107 ### worldedit.deserialize(originpos, value)
\r
109 Loads the nodes represented by string `value` at position `originpos`.
\r
111 Returns the number of nodes deserialized.
\r
113 ### worldedit.deserialize_old(originpos, value)
\r
115 Loads the nodes represented by string `value` at position `originpos`, using the older table-based WorldEdit format.
\r
117 This function is deprecated, and should not be used unless there is a need to support legacy WorldEdit save files.
\r
119 Returns the number of nodes deserialized.
\r
121 ### worldedit.metasave(pos1, pos2, file)
\r
123 Saves the nodes and meta defined by positions `pos1` and `pos2` into a file.
\r
125 Returns the number of nodes saved.
\r
127 ### worldedit.metaload(pos1, file)
\r
129 Loads the nodes and meta from `file` to position `pos1`.
\r
131 Returns the number of nodes loaded.