From a192d51a58a422bb6413dc5ddb505ac881692eba Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Sat, 22 Jun 2013 08:24:54 +0200 Subject: Add initial support for Minetest schematic API Thanks to kwolekr for the code --- Chat Commands.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'Chat Commands.md') 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 as a Lua chunk in the global namespace. 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"}) + //luatransform if minetest.env:get_node(pos).name == "air" then minetest.env:add_node(pos, {name="default:water_source"}) + +### //mtschemcreate + +Save the current WorldEdit region using the Minetest Schematic format to "(world folder)/schems/.mts". + + //mtschemcreate some random filename + //mtschemcreate huge_base + +### //mtschemplace + +Load nodes from "(world folder)/schems/.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 -- cgit v1.2.3