From b0bf52e9b688713853b1ab3740d8b6522a1ba5ae Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Wed, 31 Jul 2013 22:15:08 -0400 Subject: Rewrite spirals from scratch and fix upside-down pyramids. Use voxelmanip for markers to ensure area is emerged. --- worldedit_commands/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'worldedit_commands/init.lua') diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index 1a57849..b6c1e79 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -536,8 +536,8 @@ minetest.register_chatcommand("/pyramid", { }) minetest.register_chatcommand("/spiral", { - params = " ", - description = "Add spiral centered at WorldEdit position 1 with width , height , space between walls , composed of ", + params = " ", + description = "Add spiral centered at WorldEdit position 1 with side length , height , space between walls , composed of ", privs = {worldedit=true}, func = function(name, param) local pos = worldedit.pos1[name] @@ -546,7 +546,7 @@ minetest.register_chatcommand("/spiral", { return end - local found, _, width, height, space, nodename = param:find("^(%d+)%s+(%d+)%s+(%d+)%s+(.+)$") + local found, _, length, height, space, nodename = param:find("^(%d+)%s+(%d+)%s+(%d+)%s+(.+)$") if found == nil then worldedit.player_notify(name, "invalid usage: " .. param) return @@ -557,7 +557,7 @@ minetest.register_chatcommand("/spiral", { return end - local count = worldedit.spiral(pos, tonumber(width), tonumber(height), tonumber(space), node) + local count = worldedit.spiral(pos, tonumber(length), tonumber(height), tonumber(space), node) worldedit.player_notify(name, count .. " nodes added") end, }) -- cgit v1.2.3