summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2012-09-26 18:02:42 -0400
committerAnthony Zhang <azhang9@gmail.com>2012-09-26 18:02:42 -0400
commit382c57d008dfa8e1c26263d572d606e5d0f7f2ce (patch)
tree11c12c54da1a7ea392d323bf49e0aebfe3efe173 /init.lua
parentdef676cd2d12e16a3fc7e2a1995166dd65d5a1a3 (diff)
Replace worldedit.spiral with worldedit.pyramid, as well as related chat commands.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua10
1 files changed, 5 insertions, 5 deletions
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 = "<size> <node>",
- description = "Add spiral at WorldEdit position 1 with size <size>, composed of <node>",
+minetest.register_chatcommand("/pyramid", {
+ params = "<height> <node>",
+ description = "Add pyramid at WorldEdit position 1 with height <height>, composed of <node>",
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,
})