3 For more information, see the [README](README.md).
\r
7 Reset the region so that it is empty.
\r
13 Show markers at the region positions.
\r
19 Set WorldEdit region position 1 to the player's location.
\r
25 Set WorldEdit region position 2 to the player's location.
\r
29 ### //p set/set1/set2/get
\r
31 Set WorldEdit region, WorldEdit position 1, or WorldEdit position 2 by punching nodes, or display the current WorldEdit region.
\r
40 Display the volume of the current WorldEdit region.
\r
46 Set the current WorldEdit region to <node>.
\r
50 //set mesecons:mesecon
\r
52 ### //replace <search node> <replace node>
\r
54 Replace all instances of <search node> with <place node> in the current WorldEdit region.
\r
56 //replace cobble stone
\r
57 //replace default:steelblock glass
\r
58 //replace dirt flowers:flower_waterlily
\r
59 //replace flowers:flower_rose flowers:flower_tulip
\r
61 ### //hollowsphere <radius> <node>
\r
63 Add hollow sphere at WorldEdit position 1 with radius <radius>, composed of <node>.
\r
65 //hollowsphere 5 dirt
\r
66 //hollowsphere 12 default:glass
\r
67 //hollowsphere 17 mesecons:mesecon
\r
69 ### //sphere <radius> <node>
\r
71 Add sphere at WorldEdit position 1 with radius <radius>, composed of <node>.
\r
74 //sphere 12 default:glass
\r
75 //sphere 17 mesecons:mesecon
\r
77 ### //hollowcylinder x/y/z/? <length> <radius> <node>
\r
79 Add hollow cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.
\r
81 //hollowcylinder x +5 8 dirt
\r
82 //hollowcylinder y 28 10 default:glass
\r
83 //hollowcylinder z -12 3 mesecons:mesecon
\r
84 //hollowcylinder ? 2 4 stone
\r
86 ### //cylinder x/y/z/? <length> <radius> <node>
\r
88 Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.
\r
90 //cylinder x +5 8 dirt
\r
91 //cylinder y 28 10 default:glass
\r
92 //cylinder z -12 3 mesecons:mesecon
\r
93 //cylinder ? 2 4 stone
\r
95 ### //pyramid <height> <node>
\r
97 Add pyramid at WorldEdit position 1 with height <height>, composed of <node>.
\r
100 //pyramid 5 default:glass
\r
103 ### //spiral <width> <height> <spacer> <node>
\r
105 Add spiral at WorldEdit position 1 with width <width>, height <height>, space between walls <spacer>, composed of <node>.
\r
107 //spiral 20 5 3 dirt
\r
108 //spiral 5 2 1 default:glass
\r
109 //spiral 7 1 5 stone
\r
111 ### //copy x/y/z/? <amount>
\r
113 Copy the current WorldEdit region along the x/y/z/? axis by <amount> nodes.
\r
120 ### //move x/y/z/? <amount>
\r
122 Move the current WorldEdit positions and region along the x/y/z/? axis by <amount> nodes.
\r
129 ### //stack x/y/z/? <count>
\r
131 Stack the current WorldEdit region along the x/y/z/? axis <count> times.
\r
138 ### //transpose x/y/z/? x/y/z/?
\r
140 Transpose the current WorldEdit positions and region along the x/y/z/? and x/y/z/? axes.
\r
149 Flip the current WorldEdit region along the x/y/z/? axis.
\r
156 ### //rotate x/y/z/? <angle>
\r
158 Rotate the current WorldEdit positions and region along the x/y/z/? axis by angle <angle> (90 degree increment).
\r
165 ### //orient <angle>
\r
167 Rotate oriented nodes in the current WorldEdit region around the Y axis by angle <angle> (90 degree increment)
\r
176 Fixes the lighting in the current WorldEdit region.
\r
182 Hide all nodes in the current WorldEdit region non-destructively.
\r
186 ### //suppress <node>
\r
188 Suppress all <node> in the current WorldEdit region non-destructively.
\r
191 //suppress default:glass
\r
192 //suppress mesecons:mesecon
\r
194 ### //highlight <node>
\r
196 Highlight <node> in the current WorldEdit region by hiding everything else non-destructively.
\r
199 //highlight default:glass
\r
200 //highlight mesecons:mesecon
\r
204 Restores nodes hidden with WorldEdit in the current WorldEdit region.
\r
210 Save the current WorldEdit region to "(world folder)/schems/<file>.we".
\r
212 //save some random filename
\r
215 ### //allocate <file>
\r
217 Set the region defined by nodes from "(world folder)/schems/<file>.we" as the current WorldEdit region.
\r
219 //allocate some random filename
\r
220 //allocate huge_base
\r
224 Load nodes from "(world folder)/schems/<file>.we" with position 1 of the current WorldEdit region as the origin.
\r
226 //load some random filename
\r
229 ### //metasave <file>
\r
231 Save the current WorldEdit region including metadata to "(world folder)/schems/<file>.wem".
\r
233 //metasave some random filename
\r
234 //metasave huge_base
\r
236 ### //metaload <file>
\r
238 Load nodes and metadata from "(world folder)/schems/<file>.wem" with position 1 of the current WorldEdit region as the origin.
\r
240 //metaload some random filename
\r
241 //metaload huge_base
\r
245 Executes <code> as a Lua chunk in the global namespace.
\r
247 //lua worldedit.pos1["singleplayer"] = {x=0, y=0, z=0}
\r
248 //lua worldedit.rotate(worldedit.pos1["singleplayer"], worldedit.pos2["singleplayer"], "y", 90)
\r
250 ### //luatransform <code>
\r
252 Executes <code> as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region.
\r
254 //luatransform minetest.env:add_node(pos, {name="default:stone"})
\r
255 //luatransform if minetest.env:get_node(pos).name == "air" then minetest.env:add_node(pos, {name="default:water_source"})