diff options
author | Sfan5 <sfan5@live.de> | 2013-06-22 08:24:54 +0200 |
---|---|---|
committer | Sfan5 <sfan5@live.de> | 2013-06-22 08:25:59 +0200 |
commit | a192d51a58a422bb6413dc5ddb505ac881692eba (patch) | |
tree | 40c2ca34c228683d114bf4c53c3379c83dc2517d /Chat Commands.md | |
parent | d4187866db261192b82930cd561172761dcc83e4 (diff) |
Add initial support for Minetest schematic API
Thanks to kwolekr for the code
Diffstat (limited to 'Chat Commands.md')
-rw-r--r-- | Chat Commands.md | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Chat Commands.md b/Chat Commands.md index bba8762..eee08eb 100644 --- a/Chat Commands.md +++ b/Chat Commands.md @@ -277,4 +277,25 @@ Executes <code> as a Lua chunk in the global namespace. 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"}) + //luatransform if minetest.env:get_node(pos).name == "air" then minetest.env:add_node(pos, {name="default:water_source"})
+
+### //mtschemcreate <file>
+
+Save the current WorldEdit region using the Minetest Schematic format to "(world folder)/schems/<file>.mts".
+
+ //mtschemcreate some random filename
+ //mtschemcreate huge_base
+
+### //mtschemplace <file>
+
+Load nodes from "(world folder)/schems/<file>.mts" with position 1 of the current WorldEdit region as the origin.
+
+ //mtschemplace some random filename
+ //mtschemplace huge_base
+
+### //mtschemprob start/finish/get
+
+After using //mtschemprob start all nodes punched will bring up a text field where a probablity can be entered.
+This mode can be left with //mtschemprob finish. //mtschemprob get will display the probabilities saved for the nodes.
+
+ //mtschemprob get
|