]> git.lizzy.rs Git - worldedit.git/blob - Chat Commands.md
WorldEdit 0.6
[worldedit.git] / Chat Commands.md
1 Chat Commands\r
2 -------------\r
3 For more information, see the [README](README.md).\r
4 \r
5 ### //reset\r
6 \r
7 Reset the region so that it is empty.\r
8 \r
9     //reset\r
10 \r
11 ### //mark\r
12 \r
13 Show markers at the region positions.\r
14 \r
15     //mark\r
16 \r
17 ### //pos1\r
18 \r
19 Set WorldEdit region position 1 to the player's location.\r
20 \r
21     //pos1\r
22 \r
23 ### //pos2\r
24 \r
25 Set WorldEdit region position 2 to the player's location.\r
26 \r
27     //pos2\r
28 \r
29 ### //p set/set1/set2/get\r
30 \r
31 Set WorldEdit region, WorldEdit position 1, or WorldEdit position 2 by punching nodes, or display the current WorldEdit region.\r
32 \r
33     //p set\r
34     //p set1\r
35     //p set2\r
36     //p get\r
37 \r
38 ### //volume\r
39 \r
40 Display the volume of the current WorldEdit region.\r
41 \r
42     //volume\r
43 \r
44 ### //set <node>\r
45 \r
46 Set the current WorldEdit region to <node>.\r
47 \r
48     //set dirt\r
49     //set default:glass\r
50     //set mesecons:mesecon\r
51 \r
52 ### //replace <search node> <replace node>\r
53 \r
54 Replace all instances of <search node> with <replace node> in the current WorldEdit region.\r
55 \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
60 \r
61 ### //replaceinverse <search node> <replace node>\r
62 \r
63 Replace all nodes other than <search node> with <replace node> in the current WorldEdit region.\r
64 \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
69 \r
70 ### //hollowsphere <radius> <node>\r
71 \r
72 Add hollow sphere at WorldEdit position 1 with radius <radius>, composed of <node>.\r
73 \r
74     //hollowsphere 5 dirt\r
75     //hollowsphere 12 default:glass\r
76     //hollowsphere 17 mesecons:mesecon\r
77 \r
78 ### //sphere <radius> <node>\r
79 \r
80 Add sphere at WorldEdit position 1 with radius <radius>, composed of <node>.\r
81 \r
82     //sphere 5 dirt\r
83     //sphere 12 default:glass\r
84     //sphere 17 mesecons:mesecon\r
85 \r
86 ### //hollowdome <radius> <node>\r
87 \r
88 Add hollow dome at WorldEdit position 1 with radius <radius>, composed of <node>.\r
89 \r
90     //hollowdome 5 dirt\r
91     //hollowdome 12 default:glass\r
92     //hollowdome 17 mesecons:mesecon\r
93 \r
94 ### //dome <radius> <node>\r
95 \r
96 Add dome at WorldEdit position 1 with radius <radius>, composed of <node>.\r
97 \r
98     //dome 5 dirt\r
99     //dome 12 default:glass\r
100     //dome 17 mesecons:mesecon\r
101 \r
102 ### //hollowcylinder x/y/z/? <length> <radius> <node>\r
103 \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
105 \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
110 \r
111 ### //cylinder x/y/z/? <length> <radius> <node>\r
112 \r
113 Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.\r
114 \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
119     \r
120 ### //pyramid <height> <node>\r
121 \r
122 Add pyramid at WorldEdit position 1 with height <height>, composed of <node>.\r
123 \r
124     //pyramid 8 dirt\r
125     //pyramid 5 default:glass\r
126     //pyramid 2 stone\r
127 \r
128 ### //spiral <width> <height> <spacer> <node>\r
129 \r
130 Add spiral at WorldEdit position 1 with width <width>, height <height>, space between walls <spacer>, composed of <node>.\r
131 \r
132     //spiral 20 5 3 dirt\r
133     //spiral 5 2 1 default:glass\r
134     //spiral 7 1 5 stone\r
135 \r
136 ### //copy x/y/z/? <amount>\r
137 \r
138 Copy the current WorldEdit region along the x/y/z/? axis by <amount> nodes.\r
139 \r
140     //copy x 15\r
141     //copy y -7\r
142     //copy z +4\r
143     //copy ? 8\r
144 \r
145 ### //move x/y/z/? <amount>\r
146 \r
147 Move the current WorldEdit positions and region along the x/y/z/? axis by <amount> nodes.\r
148 \r
149     //move x 15\r
150     //move y -7\r
151     //move z +4\r
152     //move ? -1\r
153 \r
154 ### //stack x/y/z/? <count>\r
155 \r
156 Stack the current WorldEdit region along the x/y/z/? axis <count> times.\r
157 \r
158     //stack x 3\r
159     //stack y -1\r
160     //stack z +5\r
161     //stack ? 12\r
162 \r
163 ### //transpose x/y/z/? x/y/z/?\r
164 \r
165 Transpose the current WorldEdit positions and region along the x/y/z/? and x/y/z/? axes.\r
166 \r
167     //transpose x y\r
168     //transpose x z\r
169     //transpose y z\r
170     //transpose ? y\r
171 \r
172 ### //flip x/y/z/?\r
173 \r
174 Flip the current WorldEdit region along the x/y/z/? axis.\r
175 \r
176     //flip x\r
177     //flip y\r
178     //flip z\r
179     //flip ?\r
180 \r
181 ### //rotate x/y/z/? <angle>\r
182 \r
183 Rotate the current WorldEdit positions and region along the x/y/z/? axis by angle <angle> (90 degree increment).\r
184 \r
185     //rotate x 90\r
186     //rotate y 180\r
187     //rotate z 270\r
188     //rotate ? -90\r
189 \r
190 ### //orient <angle>\r
191 \r
192 Rotate oriented nodes in the current WorldEdit region around the Y axis by angle <angle> (90 degree increment)\r
193 \r
194     //orient 90\r
195     //orient 180\r
196     //orient 270\r
197     //orient -90\r
198 \r
199 ### //fixlight\r
200 \r
201 Fixes the lighting in the current WorldEdit region.\r
202 \r
203     //fixlight\r
204 \r
205 ### //hide\r
206 \r
207 Hide all nodes in the current WorldEdit region non-destructively.\r
208 \r
209     //hide\r
210 \r
211 ### //suppress <node>\r
212 \r
213 Suppress all <node> in the current WorldEdit region non-destructively.\r
214 \r
215     //suppress dirt\r
216     //suppress default:glass\r
217     //suppress mesecons:mesecon\r
218 \r
219 ### //highlight <node>\r
220 \r
221 Highlight <node> in the current WorldEdit region by hiding everything else non-destructively.\r
222 \r
223     //highlight dirt\r
224     //highlight default:glass\r
225     //highlight mesecons:mesecon\r
226 \r
227 ### //restore\r
228 \r
229 Restores nodes hidden with WorldEdit in the current WorldEdit region.\r
230 \r
231     //restore\r
232 \r
233 ### //save <file>\r
234 \r
235 Save the current WorldEdit region to "(world folder)/schems/<file>.we".\r
236 \r
237     //save some random filename\r
238     //save huge_base\r
239 \r
240 ### //allocate <file>\r
241 \r
242 Set the region defined by nodes from "(world folder)/schems/<file>.we" as the current WorldEdit region.\r
243 \r
244     //allocate some random filename\r
245     //allocate huge_base\r
246 \r
247 ### //load <file>\r
248 \r
249 Load nodes from "(world folder)/schems/<file>.we" with position 1 of the current WorldEdit region as the origin.\r
250 \r
251     //load some random filename\r
252     //load huge_base\r
253 \r
254 ### //lua <code>\r
255 \r
256 Executes <code> as a Lua chunk in the global namespace.\r
257 \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
260 \r
261 ### //luatransform <code>\r
262 \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
264 \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"})