local name = puncher:get_player_name()\r
if worldedit.inspect[name] then\r
local axis, sign = worldedit.player_axis(name)\r
- message = string.format("inspector: %s at %s (param1=%d, param2=%d, received light=%d) punched facing the %s axis",\r
+ local message = string.format("inspector: %s at %s (param1=%d, param2=%d, received light=%d) punched facing the %s axis",\r
node.name, minetest.pos_to_string(pos), node.param1, node.param2, get_node_rlight(pos), axis .. (sign > 0 and "+" or "-"))\r
worldedit.player_notify(name, message)\r
end\r
end\r
length = tonumber(length)\r
if axis == "?" then\r
+ local sign\r
axis, sign = worldedit.player_axis(name)\r
length = length * sign\r
end\r
end\r
length = tonumber(length)\r
if axis == "?" then\r
+ local sign\r
axis, sign = worldedit.player_axis(name)\r
length = length * sign\r
end\r
local found, _, axis, height, nodename = param:find("^([xyz%?])%s+([+-]?%d+)%s+(.+)$")\r
height = tonumber(height)\r
if axis == "?" then\r
+ local sign\r
axis, sign = worldedit.player_axis(name)\r
height = height * sign\r
end\r
local found, _, axis, height, nodename = param:find("^([xyz%?])%s+([+-]?%d+)%s+(.+)$")\r
height = tonumber(height)\r
if axis == "?" then\r
+ local sign\r
axis, sign = worldedit.player_axis(name)\r
height = height * sign\r
end\r
end\r
amount = tonumber(amount)\r
if axis == "?" then\r
+ local sign\r
axis, sign = worldedit.player_axis(name)\r
amount = amount * sign\r
end\r
local found, _, axis, repetitions = param:find("^([xyz%?])%s+([+-]?%d+)$")\r
repetitions = tonumber(repetitions)\r
if axis == "?" then\r
+ local sign\r
axis, sign = worldedit.player_axis(name)\r
repetitions = repetitions * sign\r
end\r