]> git.lizzy.rs Git - worldedit.git/blob - Chat Commands.md
Add a few notes on air.
[worldedit.git] / Chat Commands.md
1 Chat Commands\r
2 -------------\r
3 For more information, see the [README](README.md).\r
4 \r
5 ### //inspect\r
6 \r
7 Enable or disable node inspection.\r
8 \r
9     //inspect on\r
10     //inspect off\r
11     //inspect 1\r
12     //inspect 0\r
13     //inspect true\r
14     //inspect false\r
15     //inspect yes\r
16     //inspect no\r
17     //inspect enable\r
18     //inspect disable\r
19 \r
20 ### //reset\r
21 \r
22 Reset the region so that it is empty.\r
23 \r
24     //reset\r
25 \r
26 ### //mark\r
27 \r
28 Show markers at the region positions.\r
29 \r
30     //mark\r
31 \r
32 ### //unmark\r
33 \r
34 Hide markers if currently shown.\r
35 \r
36     //unmark\r
37 \r
38 ### //pos1\r
39 \r
40 Set WorldEdit region position 1 to the player's location.\r
41 \r
42     //pos1\r
43 \r
44 ### //pos2\r
45 \r
46 Set WorldEdit region position 2 to the player's location.\r
47 \r
48     //pos2\r
49 \r
50 ### //p set/set1/set2/get\r
51 \r
52 Set WorldEdit region, WorldEdit position 1, or WorldEdit position 2 by punching nodes, or display the current WorldEdit region.\r
53 \r
54     //p set\r
55     //p set1\r
56     //p set2\r
57     //p get\r
58 \r
59 ### //volume\r
60 \r
61 Display the volume of the current WorldEdit region.\r
62 \r
63     //volume\r
64 \r
65 ### //set <node>\r
66 \r
67 Set the current WorldEdit region to <node>.\r
68 \r
69     //set air\r
70     //set cactus\r
71     //set Bronze Block\r
72     //set mesecons:wire_00000000_off\r
73 \r
74 ### //replace <search node> <replace node>\r
75 \r
76 Replace all instances of <search node> with <replace node> in the current WorldEdit region.\r
77 \r
78     //replace Cobblestone air\r
79     //replace lightstone_blue glass\r
80     //replace dirt Bronze Block\r
81     //replace mesecons:wire_00000000_off flowers:flower_tulip\r
82 \r
83 ### //replaceinverse <search node> <replace node>\r
84 \r
85 Replace all nodes other than <search node> with <replace node> in the current WorldEdit region.\r
86 \r
87     //replaceinverse Cobblestone air\r
88     //replaceinverse flowers:flower_waterlily glass\r
89     //replaceinverse dirt Bronze Block\r
90     //replaceinverse mesecons:wire_00000000_off flowers:flower_tulip\r
91 \r
92 ### //hollowsphere <radius> <node>\r
93 \r
94 Add hollow sphere centered at WorldEdit position 1 with radius <radius>, composed of <node>.\r
95 \r
96     //hollowsphere 5 Diamond Block\r
97     //hollowsphere 12 glass\r
98     //hollowsphere 17 mesecons:wire_00000000_off\r
99 \r
100 ### //sphere <radius> <node>\r
101 \r
102 Add sphere centered at WorldEdit position 1 with radius <radius>, composed of <node>.\r
103 \r
104     //sphere 5 Diamond Block\r
105     //sphere 12 glass\r
106     //sphere 17 mesecons:wire_00000000_off\r
107 \r
108 ### //hollowdome <radius> <node>\r
109 \r
110 Add hollow dome centered at WorldEdit position 1 with radius <radius>, composed of <node>.\r
111 \r
112     //hollowdome 5 Diamond Block\r
113     //hollowdome 12 glass\r
114     //hollowdome 17 mesecons:wire_00000000_off\r
115 \r
116 ### //dome <radius> <node>\r
117 \r
118 Add dome centered at WorldEdit position 1 with radius <radius>, composed of <node>.\r
119 \r
120     //dome 5 Diamond Block\r
121     //dome 12 glass\r
122     //dome 17 mesecons:wire_00000000_off\r
123 \r
124 ### //hollowcylinder x/y/z/? <length> <radius> <node>\r
125 \r
126 Add hollow cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.\r
127 \r
128     //hollowcylinder x +5 8 Bronze Block\r
129     //hollowcylinder y 28 10 glass\r
130     //hollowcylinder z -12 3 mesecons:wire_00000000_off\r
131     //hollowcylinder ? 2 4 default:stone\r
132 \r
133 ### //cylinder x/y/z/? <length> <radius> <node>\r
134 \r
135 Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.\r
136 \r
137     //cylinder x +5 8 Bronze Block\r
138     //cylinder y 28 10 glass\r
139     //cylinder z -12 3 mesecons:wire_00000000_off\r
140     //cylinder ? 2 4 default:stone\r
141     \r
142 ### //pyramid <height> <node>\r
143 \r
144 Add pyramid centered at WorldEdit position 1 with height <height>, composed of <node>.\r
145 \r
146     //pyramid 8 Diamond Block\r
147     //pyramid 5 glass\r
148     //pyramid 2 mesecons:wire_00000000_off\r
149 \r
150 ### //spiral <width> <height> <spacer> <node>\r
151 \r
152 Add spiral centered at WorldEdit position 1 with width <width>, height <height>, space between walls <spacer>, composed of <node>.\r
153 \r
154     //spiral 20 5 3 Diamond Block\r
155     //spiral 5 2 1 glass\r
156     //spiral 7 1 5 mesecons:wire_00000000_off\r
157 \r
158 ### //copy x/y/z/? <amount>\r
159 \r
160 Copy the current WorldEdit region along the x/y/z/? axis by <amount> nodes.\r
161 \r
162     //copy x 15\r
163     //copy y -7\r
164     //copy z +4\r
165     //copy ? 8\r
166 \r
167 ### //move x/y/z/? <amount>\r
168 \r
169 Move the current WorldEdit positions and region along the x/y/z/? axis by <amount> nodes.\r
170 \r
171     //move x 15\r
172     //move y -7\r
173     //move z +4\r
174     //move ? -1\r
175 \r
176 ### //stack x/y/z/? <count>\r
177 \r
178 Stack the current WorldEdit region along the x/y/z/? axis <count> times.\r
179 \r
180     //stack x 3\r
181     //stack y -1\r
182     //stack z +5\r
183     //stack ? 12\r
184 \r
185 ### //scale <factor>\r
186 \r
187 Scale the current WorldEdit positions and region by a factor of positive integer <factor> with position 1 as the origin.\r
188 \r
189     //scale 2\r
190     //scale 1\r
191     //scale 10\r
192 \r
193 ### //transpose x/y/z/? x/y/z/?\r
194 \r
195 Transpose the current WorldEdit positions and region along the x/y/z/? and x/y/z/? axes.\r
196 \r
197     //transpose x y\r
198     //transpose x z\r
199     //transpose y z\r
200     //transpose ? y\r
201 \r
202 ### //flip x/y/z/?\r
203 \r
204 Flip the current WorldEdit region along the x/y/z/? axis.\r
205 \r
206     //flip x\r
207     //flip y\r
208     //flip z\r
209     //flip ?\r
210 \r
211 ### //rotate x/y/z/? <angle>\r
212 \r
213 Rotate the current WorldEdit positions and region along the x/y/z/? axis by angle <angle> (90 degree increment).\r
214 \r
215     //rotate x 90\r
216     //rotate y 180\r
217     //rotate z 270\r
218     //rotate ? -90\r
219 \r
220 ### //orient <angle>\r
221 \r
222 Rotate oriented nodes in the current WorldEdit region around the Y axis by angle <angle> (90 degree increment)\r
223 \r
224     //orient 90\r
225     //orient 180\r
226     //orient 270\r
227     //orient -90\r
228 \r
229 ### //fixlight\r
230 \r
231 Fixes the lighting in the current WorldEdit region.\r
232 \r
233     //fixlight\r
234 \r
235 ### //hide\r
236 \r
237 Hide all nodes in the current WorldEdit region non-destructively.\r
238 \r
239     //hide\r
240 \r
241 ### //suppress <node>\r
242 \r
243 Suppress all <node> in the current WorldEdit region non-destructively.\r
244 \r
245     //suppress Diamond Block\r
246     //suppress glass\r
247     //suppress mesecons:wire_00000000_off\r
248 \r
249 ### //highlight <node>\r
250 \r
251 Highlight <node> in the current WorldEdit region by hiding everything else non-destructively.\r
252 \r
253     //highlight Diamond Block\r
254     //highlight glass\r
255     //highlight mesecons:wire_00000000_off\r
256 \r
257 ### //restore\r
258 \r
259 Restores nodes hidden with WorldEdit in the current WorldEdit region.\r
260 \r
261     //restore\r
262 \r
263 ### //save <file>\r
264 \r
265 Save the current WorldEdit region to "(world folder)/schems/<file>.we".\r
266 \r
267     //save some random filename\r
268     //save huge_base\r
269 \r
270 ### //allocate <file>\r
271 \r
272 Set the region defined by nodes from "(world folder)/schems/<file>.we" as the current WorldEdit region.\r
273 \r
274     //allocate some random filename\r
275     //allocate huge_base\r
276 \r
277 ### //load <file>\r
278 \r
279 Load nodes from "(world folder)/schems/<file>.we" with position 1 of the current WorldEdit region as the origin.\r
280 \r
281     //load some random filename\r
282     //load huge_base\r
283 \r
284 ### //lua <code>\r
285 \r
286 Executes <code> as a Lua chunk in the global namespace.\r
287 \r
288     //lua worldedit.pos1["singleplayer"] = {x=0, y=0, z=0}\r
289     //lua worldedit.rotate(worldedit.pos1["singleplayer"], worldedit.pos2["singleplayer"], "y", 90)\r
290 \r
291 ### //luatransform <code>\r
292 \r
293 Executes <code> as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region.\r
294 \r
295     //luatransform minetest.add_node(pos, {name="default:stone"})\r
296     //luatransform if minetest.get_node(pos).name == "air" then minetest.env:add_node(pos, {name="default:water_source"})\r
297 \r
298 ### //mtschemcreate <file>\r
299 \r
300 Save the current WorldEdit region using the Minetest Schematic format to "(world folder)/schems/<file>.mts".\r
301 \r
302     //mtschemcreate some random filename\r
303     //mtschemcreate huge_base\r
304 \r
305 ### //mtschemplace <file>\r
306 \r
307 Load nodes from "(world folder)/schems/<file>.mts" with position 1 of the current WorldEdit region as the origin.\r
308 \r
309     //mtschemplace some random filename\r
310     //mtschemplace huge_base\r
311 \r
312 ### //mtschemprob start/finish/get\r
313 \r
314 After using //mtschemprob start all nodes punched will bring up a text field where a probablity can be entered.\r
315 This mode can be left with //mtschemprob finish. //mtschemprob get will display the probabilities saved for the nodes.\r
316 \r
317     //mtschemprob get\r