diff options
author | Anthony Zhang <azhang9@gmail.com> | 2013-01-12 18:20:41 -0500 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2013-01-12 18:20:41 -0500 |
commit | e2f1c4ef174443b2807aa94a209261546bbf19fb (patch) | |
tree | 8e81c6141d2b7823b1112308fbddcfed1b2df2b1 /Chat Commands.md | |
parent | c27ab877f1bc8afde76f9cfe11c7880cec9bdda2 (diff) |
Add //homogenize, //lua, and //luatransform commands, as well as their documentation.
Diffstat (limited to 'Chat Commands.md')
-rw-r--r-- | Chat Commands.md | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Chat Commands.md b/Chat Commands.md index bfca8bf..23920a4 100644 --- a/Chat Commands.md +++ b/Chat Commands.md @@ -238,4 +238,18 @@ Save the current WorldEdit region including metadata to "(world folder)/schems/< Load nodes and metadata from "(world folder)/schems/<file>.wem" with position 1 of the current WorldEdit region as the origin.
//metaload some random filename
- //metaload huge_base
\ No newline at end of file + //metaload huge_base
+
+### //lua <code>
+
+Executes <code> as a Lua chunk in the global namespace.
+
+ //lua worldedit.pos1["singleplayer"] = {x=0, y=0, z=0}
+ //lua worldedit.rotate(worldedit.pos1["singleplayer"], worldedit.pos2["singleplayer"], "y", 90)
+
+### //luatransform <code>
+
+Executes <code> as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region.
+
+ //luatransform minetest.env:add_node(pos, {name="default:stone"})
+ //luatransform if minetest.env:get_node(pos).name == "air" then minetest.env:add_node(pos, {name="default:water_source"})
\ No newline at end of file |