summaryrefslogtreecommitdiff
path: root/Chat Commands.md
diff options
context:
space:
mode:
Diffstat (limited to 'Chat Commands.md')
-rw-r--r--Chat Commands.md16
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