From 9067f733494930bb7bff98932164a765d054fdda Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Sun, 22 Jul 2012 15:22:36 -0400 Subject: Add //mark command and document it. --- init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index a16d4d4..d5c4eb5 100644 --- a/init.lua +++ b/init.lua @@ -35,6 +35,17 @@ minetest.register_chatcommand("/reset", { end, }) +minetest.register_chatcommand("/mark", { + params = "", + description = "Show markers at the region positions", + privs = {worldedit=true}, + func = function(name, param) + worldedit.mark_pos1(name) + worldedit.mark_pos2(name) + minetest.chat_send_player(name, "WorldEdit region marked") + end, +}) + minetest.register_chatcommand("/pos1", { params = "", description = "Set WorldEdit region position 1 to the player's location", -- cgit v1.2.3