From 382c57d008dfa8e1c26263d572d606e5d0f7f2ce Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Wed, 26 Sep 2012 18:02:42 -0400 Subject: Replace worldedit.spiral with worldedit.pyramid, as well as related chat commands. --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index a7e1947..da462c5 100644 --- a/init.lua +++ b/init.lua @@ -271,9 +271,9 @@ minetest.register_chatcommand("/hollowcylinder", { end, }) -minetest.register_chatcommand("/spiral", { - params = " ", - description = "Add spiral at WorldEdit position 1 with size , composed of ", +minetest.register_chatcommand("/pyramid", { + params = " ", + description = "Add pyramid at WorldEdit position 1 with height , composed of ", privs = {worldedit=true}, func = function(name, param) local pos = worldedit.pos1[name] @@ -292,8 +292,8 @@ minetest.register_chatcommand("/spiral", { return end - local count = worldedit.spiral(pos, tonumber(size), nodename) - minetest.chat_send_player(name, count .. " nodes changed") + local count = worldedit.pyramid(pos, tonumber(size), nodename) + minetest.chat_send_player(name, count .. " nodes added") end, }) -- cgit v1.2.3