params = "",\r
description = "Get information about the WorldEdit mod",\r
func = function(name)\r
- worldedit.player_notify(name, "WorldEdit " .. worldedit.version_string .. " is available on this server. Type //help to get a list of commands, or get more information at https://github.com/Uberi/Minetest-WorldEdit")\r
+ worldedit.player_notify(name, "WorldEdit " .. worldedit.version_string..\r
+ " is available on this server. Type //help to get a list of "..\r
+ "commands, or get more information at "..\r
+ "https://github.com/Uberi/Minetest-WorldEdit")\r
end,\r
})\r
\r
})\r
\r
worldedit.register_command("fixedpos", {\r
- params = "set1/set2 x y z",\r
+ params = "set1/set2 <x> <y> <z>",\r
description = "Set a WorldEdit region position to the position at (<x>, <y>, <z>)",\r
privs = {worldedit=true},\r
parse = function(param)\r
parse = function(param)\r
local param2 = tonumber(param)\r
if not param2 then\r
- return false, "Invalid or missing param2 argument"\r
+ return false\r
elseif param2 < 0 or param2 > 255 then\r
return false, "Param2 is out of range (must be between 0 and 255 inclusive!)"\r
end\r
})\r
\r
worldedit.register_command("mix", {\r
- params = "<node1> [<weighting1>] [<node2> [<weighting2>]] ...",\r
+ params = "<node1> [count1] <node2> [count2] ...",\r
description = "Fill the current WorldEdit region with a random mix of <node1>, ...",\r
privs = {worldedit=true},\r
require_pos = 2,\r
\r
worldedit.register_command("hollowcylinder", {\r
params = "x/y/z/? <length> <radius1> [radius2] <node>",\r
- description = "Add hollow cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length>, base radius <radius1> (and top radius [radius2]), composed of <node>",\r
+ description = "Add hollow cylinder at WorldEdit position 1 along the given axis with length <length>, base radius <radius1> (and top radius [radius2]), composed of <node>",\r
privs = {worldedit=true},\r
require_pos = 1,\r
parse = check_cylinder,\r
\r
worldedit.register_command("cylinder", {\r
params = "x/y/z/? <length> <radius1> [radius2] <node>",\r
- description = "Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length>, base radius <radius1> (and top radius [radius2]), composed of <node>",\r
+ description = "Add cylinder at WorldEdit position 1 along the given axis with length <length>, base radius <radius1> (and top radius [radius2]), composed of <node>",\r
privs = {worldedit=true},\r
require_pos = 1,\r
parse = check_cylinder,\r
\r
worldedit.register_command("hollowpyramid", {\r
params = "x/y/z/? <height> <node>",\r
- description = "Add hollow pyramid centered at WorldEdit position 1 along the x/y/z/? axis with height <height>, composed of <node>",\r
+ description = "Add hollow pyramid centered at WorldEdit position 1 along the given axis with height <height>, composed of <node>",\r
privs = {worldedit=true},\r
require_pos = 1,\r
parse = check_pyramid,\r
\r
worldedit.register_command("pyramid", {\r
params = "x/y/z/? <height> <node>",\r
- description = "Add pyramid centered at WorldEdit position 1 along the x/y/z/? axis with height <height>, composed of <node>",\r
+ description = "Add pyramid centered at WorldEdit position 1 along the given axis with height <height>, composed of <node>",\r
privs = {worldedit=true},\r
require_pos = 1,\r
parse = check_pyramid,\r
\r
worldedit.register_command("copy", {\r
params = "x/y/z/? <amount>",\r
- description = "Copy the current WorldEdit region along the x/y/z/? axis by <amount> nodes",\r
+ description = "Copy the current WorldEdit region along the given axis by <amount> nodes",\r
privs = {worldedit=true},\r
require_pos = 2,\r
parse = function(param)\r
\r
worldedit.register_command("move", {\r
params = "x/y/z/? <amount>",\r
- description = "Move the current WorldEdit region along the x/y/z/? axis by <amount> nodes",\r
+ description = "Move the current WorldEdit region along the given axis by <amount> nodes",\r
privs = {worldedit=true},\r
require_pos = 2,\r
parse = function(param)\r
\r
worldedit.register_command("stack", {\r
params = "x/y/z/? <count>",\r
- description = "Stack the current WorldEdit region along the x/y/z/? axis <count> times",\r
+ description = "Stack the current WorldEdit region along the given axis <count> times",\r
privs = {worldedit=true},\r
require_pos = 2,\r
parse = function(param)\r
\r
worldedit.register_command("transpose", {\r
params = "x/y/z/? x/y/z/?",\r
- description = "Transpose the current WorldEdit region along the x/y/z/? and x/y/z/? axes",\r
+ description = "Transpose the current WorldEdit region along the given axes",\r
privs = {worldedit=true},\r
require_pos = 2,\r
parse = function(param)\r
\r
worldedit.register_command("flip", {\r
params = "x/y/z/?",\r
- description = "Flip the current WorldEdit region along the x/y/z/? axis",\r
+ description = "Flip the current WorldEdit region along the given axis",\r
privs = {worldedit=true},\r
require_pos = 2,\r
parse = function(param)\r
})\r
\r
worldedit.register_command("rotate", {\r
- params = "<axis> <angle>",\r
- description = "Rotate the current WorldEdit region around the axis <axis> by angle <angle> (90 degree increment)",\r
+ params = "x/y/z/? <angle>",\r
+ description = "Rotate the current WorldEdit region around the given axis by angle <angle> (90 degree increment)",\r
privs = {worldedit=true},\r
require_pos = 2,\r
parse = function(param)\r