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 Hide markers if currently shown.
\r
25 Set WorldEdit region position 1 to the player's location.
\r
31 Set WorldEdit region position 2 to the player's location.
\r
35 ### //p set/set1/set2/get
\r
37 Set WorldEdit region, WorldEdit position 1, or WorldEdit position 2 by punching nodes, or display the current WorldEdit region.
\r
46 Display the volume of the current WorldEdit region.
\r
52 Set the current WorldEdit region to <node>.
\r
56 //set mesecons:wire_00000000_off
\r
58 ### //replace <search node> <replace node>
\r
60 Replace all instances of <search node> with <replace node> in the current WorldEdit region.
\r
62 //replace Cobblestone cactus
\r
63 //replace lightstone_blue glass
\r
64 //replace dirt Bronze Block
\r
65 //replace mesecons:wire_00000000_off flowers:flower_tulip
\r
67 ### //replaceinverse <search node> <replace node>
\r
69 Replace all nodes other than <search node> with <replace node> in the current WorldEdit region.
\r
71 //replaceinverse Cobblestone cactus
\r
72 //replaceinverse flowers:flower_waterlily glass
\r
73 //replaceinverse dirt Bronze Block
\r
74 //replaceinverse mesecons:wire_00000000_off flowers:flower_tulip
\r
76 ### //hollowsphere <radius> <node>
\r
78 Add hollow sphere centered at WorldEdit position 1 with radius <radius>, composed of <node>.
\r
80 //hollowsphere 5 Diamond Block
\r
81 //hollowsphere 12 glass
\r
82 //hollowsphere 17 mesecons:wire_00000000_off
\r
84 ### //sphere <radius> <node>
\r
86 Add sphere centered at WorldEdit position 1 with radius <radius>, composed of <node>.
\r
88 //sphere 5 Diamond Block
\r
90 //sphere 17 mesecons:wire_00000000_off
\r
92 ### //hollowdome <radius> <node>
\r
94 Add hollow dome centered at WorldEdit position 1 with radius <radius>, composed of <node>.
\r
96 //hollowdome 5 Diamond Block
\r
97 //hollowdome 12 glass
\r
98 //hollowdome 17 mesecons:wire_00000000_off
\r
100 ### //dome <radius> <node>
\r
102 Add dome centered at WorldEdit position 1 with radius <radius>, composed of <node>.
\r
104 //dome 5 Diamond Block
\r
106 //dome 17 mesecons:wire_00000000_off
\r
108 ### //hollowcylinder x/y/z/? <length> <radius> <node>
\r
110 Add hollow cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.
\r
112 //hollowcylinder x +5 8 Bronze Block
\r
113 //hollowcylinder y 28 10 glass
\r
114 //hollowcylinder z -12 3 mesecons:wire_00000000_off
\r
115 //hollowcylinder ? 2 4 default:stone
\r
117 ### //cylinder x/y/z/? <length> <radius> <node>
\r
119 Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.
\r
121 //cylinder x +5 8 Bronze Block
\r
122 //cylinder y 28 10 glass
\r
123 //cylinder z -12 3 mesecons:wire_00000000_off
\r
124 //cylinder ? 2 4 default:stone
\r
126 ### //pyramid <height> <node>
\r
128 Add pyramid centered at WorldEdit position 1 with height <height>, composed of <node>.
\r
130 //pyramid 8 Diamond Block
\r
132 //pyramid 2 mesecons:wire_00000000_off
\r
134 ### //spiral <width> <height> <spacer> <node>
\r
136 Add spiral centered at WorldEdit position 1 with width <width>, height <height>, space between walls <spacer>, composed of <node>.
\r
138 //spiral 20 5 3 Diamond Block
\r
139 //spiral 5 2 1 glass
\r
140 //spiral 7 1 5 mesecons:wire_00000000_off
\r
142 ### //copy x/y/z/? <amount>
\r
144 Copy the current WorldEdit region along the x/y/z/? axis by <amount> nodes.
\r
151 ### //move x/y/z/? <amount>
\r
153 Move the current WorldEdit positions and region along the x/y/z/? axis by <amount> nodes.
\r
160 ### //stack x/y/z/? <count>
\r
162 Stack the current WorldEdit region along the x/y/z/? axis <count> times.
\r
169 ### //scale <factor>
\r
171 Scale the current WorldEdit positions and region by a factor of positive integer <factor> with position 1 as the origin.
\r
177 ### //transpose x/y/z/? x/y/z/?
\r
179 Transpose the current WorldEdit positions and region along the x/y/z/? and x/y/z/? axes.
\r
188 Flip the current WorldEdit region along the x/y/z/? axis.
\r
195 ### //rotate x/y/z/? <angle>
\r
197 Rotate the current WorldEdit positions and region along the x/y/z/? axis by angle <angle> (90 degree increment).
\r
204 ### //orient <angle>
\r
206 Rotate oriented nodes in the current WorldEdit region around the Y axis by angle <angle> (90 degree increment)
\r
215 Fixes the lighting in the current WorldEdit region.
\r
221 Hide all nodes in the current WorldEdit region non-destructively.
\r
225 ### //suppress <node>
\r
227 Suppress all <node> in the current WorldEdit region non-destructively.
\r
229 //suppress Diamond Block
\r
231 //suppress mesecons:wire_00000000_off
\r
233 ### //highlight <node>
\r
235 Highlight <node> in the current WorldEdit region by hiding everything else non-destructively.
\r
237 //highlight Diamond Block
\r
239 //highlight mesecons:wire_00000000_off
\r
243 Restores nodes hidden with WorldEdit in the current WorldEdit region.
\r
249 Save the current WorldEdit region to "(world folder)/schems/<file>.we".
\r
251 //save some random filename
\r
254 ### //allocate <file>
\r
256 Set the region defined by nodes from "(world folder)/schems/<file>.we" as the current WorldEdit region.
\r
258 //allocate some random filename
\r
259 //allocate huge_base
\r
263 Load nodes from "(world folder)/schems/<file>.we" with position 1 of the current WorldEdit region as the origin.
\r
265 //load some random filename
\r
270 Executes <code> as a Lua chunk in the global namespace.
\r
272 //lua worldedit.pos1["singleplayer"] = {x=0, y=0, z=0}
\r
273 //lua worldedit.rotate(worldedit.pos1["singleplayer"], worldedit.pos2["singleplayer"], "y", 90)
\r
275 ### //luatransform <code>
\r
277 Executes <code> as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region.
\r
279 //luatransform minetest.env:add_node(pos, {name="default:stone"})
\r
280 //luatransform if minetest.env:get_node(pos).name == "air" then minetest.env:add_node(pos, {name="default:water_source"})
\r
282 ### //mtschemcreate <file>
\r
284 Save the current WorldEdit region using the Minetest Schematic format to "(world folder)/schems/<file>.mts".
\r
286 //mtschemcreate some random filename
\r
287 //mtschemcreate huge_base
\r
289 ### //mtschemplace <file>
\r
291 Load nodes from "(world folder)/schems/<file>.mts" with position 1 of the current WorldEdit region as the origin.
\r
293 //mtschemplace some random filename
\r
294 //mtschemplace huge_base
\r
296 ### //mtschemprob start/finish/get
\r
298 After using //mtschemprob start all nodes punched will bring up a text field where a probablity can be entered.
\r
299 This mode can be left with //mtschemprob finish. //mtschemprob get will display the probabilities saved for the nodes.
\r