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