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 <replace 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 ### //replaceinverse <search node> <replace node>
\r
63 Replace all nodes other than <search node> with <replace node> in the current WorldEdit region.
\r
65 //replaceinverse air stone
\r
66 //replaceinverse water_source default:dirt
\r
67 //replaceinverse mesecons:mesecon air
\r
68 //replaceinverse default:steelblock default:glass
\r
70 ### //hollowsphere <radius> <node>
\r
72 Add hollow sphere at WorldEdit position 1 with radius <radius>, composed of <node>.
\r
74 //hollowsphere 5 dirt
\r
75 //hollowsphere 12 default:glass
\r
76 //hollowsphere 17 mesecons:mesecon
\r
78 ### //sphere <radius> <node>
\r
80 Add sphere at WorldEdit position 1 with radius <radius>, composed of <node>.
\r
83 //sphere 12 default:glass
\r
84 //sphere 17 mesecons:mesecon
\r
86 ### //hollowdome <radius> <node>
\r
88 Add hollow dome at WorldEdit position 1 with radius <radius>, composed of <node>.
\r
91 //hollowdome 12 default:glass
\r
92 //hollowdome 17 mesecons:mesecon
\r
94 ### //dome <radius> <node>
\r
96 Add dome at WorldEdit position 1 with radius <radius>, composed of <node>.
\r
99 //dome 12 default:glass
\r
100 //dome 17 mesecons:mesecon
\r
102 ### //hollowcylinder x/y/z/? <length> <radius> <node>
\r
104 Add hollow cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.
\r
106 //hollowcylinder x +5 8 dirt
\r
107 //hollowcylinder y 28 10 default:glass
\r
108 //hollowcylinder z -12 3 mesecons:mesecon
\r
109 //hollowcylinder ? 2 4 stone
\r
111 ### //cylinder x/y/z/? <length> <radius> <node>
\r
113 Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.
\r
115 //cylinder x +5 8 dirt
\r
116 //cylinder y 28 10 default:glass
\r
117 //cylinder z -12 3 mesecons:mesecon
\r
118 //cylinder ? 2 4 stone
\r
120 ### //pyramid <height> <node>
\r
122 Add pyramid at WorldEdit position 1 with height <height>, composed of <node>.
\r
125 //pyramid 5 default:glass
\r
128 ### //spiral <width> <height> <spacer> <node>
\r
130 Add spiral at WorldEdit position 1 with width <width>, height <height>, space between walls <spacer>, composed of <node>.
\r
132 //spiral 20 5 3 dirt
\r
133 //spiral 5 2 1 default:glass
\r
134 //spiral 7 1 5 stone
\r
136 ### //copy x/y/z/? <amount>
\r
138 Copy the current WorldEdit region along the x/y/z/? axis by <amount> nodes.
\r
145 ### //move x/y/z/? <amount>
\r
147 Move the current WorldEdit positions and region along the x/y/z/? axis by <amount> nodes.
\r
154 ### //stack x/y/z/? <count>
\r
156 Stack the current WorldEdit region along the x/y/z/? axis <count> times.
\r
163 ### //transpose x/y/z/? x/y/z/?
\r
165 Transpose the current WorldEdit positions and region along the x/y/z/? and x/y/z/? axes.
\r
174 Flip the current WorldEdit region along the x/y/z/? axis.
\r
181 ### //rotate x/y/z/? <angle>
\r
183 Rotate the current WorldEdit positions and region along the x/y/z/? axis by angle <angle> (90 degree increment).
\r
190 ### //orient <angle>
\r
192 Rotate oriented nodes in the current WorldEdit region around the Y axis by angle <angle> (90 degree increment)
\r
201 Fixes the lighting in the current WorldEdit region.
\r
207 Hide all nodes in the current WorldEdit region non-destructively.
\r
211 ### //suppress <node>
\r
213 Suppress all <node> in the current WorldEdit region non-destructively.
\r
216 //suppress default:glass
\r
217 //suppress mesecons:mesecon
\r
219 ### //highlight <node>
\r
221 Highlight <node> in the current WorldEdit region by hiding everything else non-destructively.
\r
224 //highlight default:glass
\r
225 //highlight mesecons:mesecon
\r
229 Restores nodes hidden with WorldEdit in the current WorldEdit region.
\r
235 Save the current WorldEdit region to "(world folder)/schems/<file>.we".
\r
237 //save some random filename
\r
240 ### //allocate <file>
\r
242 Set the region defined by nodes from "(world folder)/schems/<file>.we" as the current WorldEdit region.
\r
244 //allocate some random filename
\r
245 //allocate huge_base
\r
249 Load nodes from "(world folder)/schems/<file>.we" with position 1 of the current WorldEdit region as the origin.
\r
251 //load some random filename
\r
256 Executes <code> as a Lua chunk in the global namespace.
\r
258 //lua worldedit.pos1["singleplayer"] = {x=0, y=0, z=0}
\r
259 //lua worldedit.rotate(worldedit.pos1["singleplayer"], worldedit.pos2["singleplayer"], "y", 90)
\r
261 ### //luatransform <code>
\r
263 Executes <code> as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region.
\r
265 //luatransform minetest.env:add_node(pos, {name="default:stone"})
\r
266 //luatransform if minetest.env:get_node(pos).name == "air" then minetest.env:add_node(pos, {name="default:water_source"})