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