From e2f1c4ef174443b2807aa94a209261546bbf19fb Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Sat, 12 Jan 2013 18:20:41 -0500 Subject: Add //homogenize, //lua, and //luatransform commands, as well as their documentation. --- Chat Commands.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Chat Commands.md') 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/.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 + +Executes 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 + +Executes 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 -- cgit v1.2.3