diff options
author | Anthony Zhang <azhang9@gmail.com> | 2012-09-26 18:02:42 -0400 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2012-09-26 18:02:42 -0400 |
commit | 382c57d008dfa8e1c26263d572d606e5d0f7f2ce (patch) | |
tree | 11c12c54da1a7ea392d323bf49e0aebfe3efe173 /init.lua | |
parent | def676cd2d12e16a3fc7e2a1995166dd65d5a1a3 (diff) |
Replace worldedit.spiral with worldedit.pyramid, as well as related chat commands.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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,
})
|