Add //homogenize, //lua, and //luatransform commands, as well as their documentation.

This commit is contained in:
Anthony Zhang
2013-01-12 18:20:41 -05:00
parent c27ab877f1
commit e2f1c4ef17
5 changed files with 138 additions and 8 deletions

View File

@ -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
//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"})