From 1024eace6f342a340ef84583b2c0c97d657ad326 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Fri, 24 Oct 2014 15:27:41 -0400 Subject: Use "we-" prefix for commands --- worldedit_commands/init.lua | 90 ++++++++++++++++++++++----------------------- 1 file changed, 45 insertions(+), 45 deletions(-) (limited to 'worldedit_commands/init.lua') diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index 7d347c9..3a5fa61 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -72,7 +72,7 @@ worldedit.player_axis = function(name) return "z", dir.z > 0 and 1 or -1 end -minetest.register_chatcommand("/about", { +minetest.register_chatcommand("we-about", { params = "", description = "Get information about the mod", func = function(name, param) @@ -80,7 +80,7 @@ minetest.register_chatcommand("/about", { end, }) -minetest.register_chatcommand("/inspect", { +minetest.register_chatcommand("we-inspect", { params = "on/off/1/0/true/false/yes/no/enable/disable/", description = "Enable or disable node inspection", privs = {worldedit=true}, @@ -113,7 +113,7 @@ minetest.register_on_punchnode(function(pos, node, puncher) end end) -minetest.register_chatcommand("/reset", { +minetest.register_chatcommand("we-reset", { params = "", description = "Reset the region so that it is empty", privs = {worldedit=true}, @@ -127,7 +127,7 @@ minetest.register_chatcommand("/reset", { end, }) -minetest.register_chatcommand("/mark", { +minetest.register_chatcommand("we-mark", { params = "", description = "Show markers at the region positions", privs = {worldedit=true}, @@ -138,7 +138,7 @@ minetest.register_chatcommand("/mark", { end, }) -minetest.register_chatcommand("/unmark", { +minetest.register_chatcommand("we-unmark", { params = "", description = "Hide markers if currently shown", privs = {worldedit=true}, @@ -154,7 +154,7 @@ minetest.register_chatcommand("/unmark", { end, }) -minetest.register_chatcommand("/pos1", { +minetest.register_chatcommand("we-pos1", { params = "", description = "Set WorldEdit region position 1 to the player's location", privs = {worldedit=true}, @@ -167,7 +167,7 @@ minetest.register_chatcommand("/pos1", { end, }) -minetest.register_chatcommand("/pos2", { +minetest.register_chatcommand("we-pos2", { params = "", description = "Set WorldEdit region position 2 to the player's location", privs = {worldedit=true}, @@ -180,7 +180,7 @@ minetest.register_chatcommand("/pos2", { end, }) -minetest.register_chatcommand("/p", { +minetest.register_chatcommand("we-p", { params = "set/set1/set2/get", description = "Set WorldEdit region, WorldEdit position 1, or WorldEdit position 2 by punching nodes, or display the current WorldEdit region", privs = {worldedit=true}, @@ -211,7 +211,7 @@ minetest.register_chatcommand("/p", { end, }) -minetest.register_chatcommand("/fixedpos", { +minetest.register_chatcommand("we-fixedpos", { params = "set1/set2 x y z", description = "Set a WorldEdit region position to the position at (, , )", privs = {worldedit=true}, @@ -259,7 +259,7 @@ minetest.register_on_punchnode(function(pos, node, puncher) end end) -minetest.register_chatcommand("/volume", { +minetest.register_chatcommand("we-volume", { params = "", description = "Display the volume of the current WorldEdit region", privs = {worldedit=true}, @@ -279,7 +279,7 @@ minetest.register_chatcommand("/volume", { end, }) -minetest.register_chatcommand("/set", { +minetest.register_chatcommand("we-set", { params = "", description = "Set the current WorldEdit region to ", privs = {worldedit=true}, @@ -295,7 +295,7 @@ minetest.register_chatcommand("/set", { end, check_region), }) -minetest.register_chatcommand("/mix", { +minetest.register_chatcommand("we-mix", { params = " ...", description = "Fill the current WorldEdit region with a random mix of , ...", privs = {worldedit=true}, @@ -335,7 +335,7 @@ local check_replace = function(name, param) return check_region(name, param) end -minetest.register_chatcommand("/replace", { +minetest.register_chatcommand("we-replace", { params = " ", description = "Replace all instances of with in the current WorldEdit region", privs = {worldedit=true}, @@ -348,7 +348,7 @@ minetest.register_chatcommand("/replace", { end, check_replace), }) -minetest.register_chatcommand("/replaceinverse", { +minetest.register_chatcommand("we-replaceinverse", { params = " ", description = "Replace all nodes other than with in the current WorldEdit region", privs = {worldedit=true}, @@ -376,7 +376,7 @@ local check_sphere = function(name, param) return math.ceil((4 * math.pi * (tonumber(radius) ^ 3)) / 3) --volume of sphere end -minetest.register_chatcommand("/hollowsphere", { +minetest.register_chatcommand("we-hollowsphere", { params = " ", description = "Add hollow sphere centered at WorldEdit position 1 with radius , composed of ", privs = {worldedit=true}, @@ -388,7 +388,7 @@ minetest.register_chatcommand("/hollowsphere", { end, check_sphere), }) -minetest.register_chatcommand("/sphere", { +minetest.register_chatcommand("we-sphere", { params = " ", description = "Add sphere centered at WorldEdit position 1 with radius , composed of ", privs = {worldedit=true}, @@ -415,7 +415,7 @@ local check_dome = function(name, param) return math.ceil((2 * math.pi * (tonumber(radius) ^ 3)) / 3) --volume of dome end -minetest.register_chatcommand("/hollowdome", { +minetest.register_chatcommand("we-hollowdome", { params = " ", description = "Add hollow dome centered at WorldEdit position 1 with radius , composed of ", privs = {worldedit=true}, @@ -427,7 +427,7 @@ minetest.register_chatcommand("/hollowdome", { end, check_dome), }) -minetest.register_chatcommand("/dome", { +minetest.register_chatcommand("we-dome", { params = " ", description = "Add dome centered at WorldEdit position 1 with radius , composed of ", privs = {worldedit=true}, @@ -454,7 +454,7 @@ local check_cylinder = function(name, param) return math.ceil(math.pi * (tonumber(radius) ^ 2) * tonumber(length)) end -minetest.register_chatcommand("/hollowcylinder", { +minetest.register_chatcommand("we-hollowcylinder", { params = "x/y/z/? ", description = "Add hollow cylinder at WorldEdit position 1 along the x/y/z/? axis with length and radius , composed of ", privs = {worldedit=true}, @@ -471,7 +471,7 @@ minetest.register_chatcommand("/hollowcylinder", { end, check_cylinder), }) -minetest.register_chatcommand("/cylinder", { +minetest.register_chatcommand("we-cylinder", { params = "x/y/z/? ", description = "Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length and radius , composed of ", privs = {worldedit=true}, @@ -488,7 +488,7 @@ minetest.register_chatcommand("/cylinder", { end, check_cylinder), }) -minetest.register_chatcommand("/pyramid", { +minetest.register_chatcommand("we-pyramid", { params = "x/y/z/? ", description = "Add pyramid centered at WorldEdit position 1 along the x/y/z/? axis with height , composed of ", privs = {worldedit=true}, @@ -520,7 +520,7 @@ minetest.register_chatcommand("/pyramid", { end), }) -minetest.register_chatcommand("/spiral", { +minetest.register_chatcommand("we-spiral", { params = " ", description = "Add spiral centered at WorldEdit position 1 with side length , height , space between walls , composed of ", privs = {worldedit=true}, @@ -546,7 +546,7 @@ minetest.register_chatcommand("/spiral", { end), }) -minetest.register_chatcommand("/copy", { +minetest.register_chatcommand("we-copy", { params = "x/y/z/? ", description = "Copy the current WorldEdit region along the x/y/z/? axis by nodes", privs = {worldedit=true}, @@ -571,7 +571,7 @@ minetest.register_chatcommand("/copy", { end), }) -minetest.register_chatcommand("/move", { +minetest.register_chatcommand("we-move", { params = "x/y/z/? ", description = "Move the current WorldEdit region along the x/y/z/? axis by nodes", privs = {worldedit=true}, @@ -598,7 +598,7 @@ minetest.register_chatcommand("/move", { end, check_region), }) -minetest.register_chatcommand("/stack", { +minetest.register_chatcommand("we-stack", { params = "x/y/z/? ", description = "Stack the current WorldEdit region along the x/y/z/? axis times", privs = {worldedit=true}, @@ -624,7 +624,7 @@ minetest.register_chatcommand("/stack", { end), }) -minetest.register_chatcommand("/stack2", { +minetest.register_chatcommand("we-stack2", { params = " ", description = "Stack the current WorldEdit region times by offset , , ", privs = {worldedit=true}, @@ -660,7 +660,7 @@ minetest.register_chatcommand("/stack2", { }) -minetest.register_chatcommand("/stretch", { +minetest.register_chatcommand("we-stretch", { params = " ", description = "Scale the current WorldEdit positions and region by a factor of , , along the X, Y, and Z axes, repectively, with position 1 as the origin", privs = {worldedit=true}, @@ -694,7 +694,7 @@ minetest.register_chatcommand("/stretch", { end), }) -minetest.register_chatcommand("/transpose", { +minetest.register_chatcommand("we-transpose", { params = "x/y/z/? x/y/z/?", description = "Transpose the current WorldEdit region along the x/y/z/? and x/y/z/? axes", privs = {worldedit=true}, @@ -727,7 +727,7 @@ minetest.register_chatcommand("/transpose", { end), }) -minetest.register_chatcommand("/flip", { +minetest.register_chatcommand("we-flip", { params = "x/y/z/?", description = "Flip the current WorldEdit region along the x/y/z/? axis", privs = {worldedit=true}, @@ -745,7 +745,7 @@ minetest.register_chatcommand("/flip", { end), }) -minetest.register_chatcommand("/rotate", { +minetest.register_chatcommand("we-rotate", { params = " ", description = "Rotate the current WorldEdit region around the axis by angle (90 degree increment)", privs = {worldedit=true}, @@ -777,7 +777,7 @@ minetest.register_chatcommand("/rotate", { end), }) -minetest.register_chatcommand("/orient", { +minetest.register_chatcommand("we-orient", { params = "", description = "Rotate oriented nodes in the current WorldEdit region around the Y axis by angle (90 degree increment)", privs = {worldedit=true}, @@ -800,7 +800,7 @@ minetest.register_chatcommand("/orient", { end), }) -minetest.register_chatcommand("/fixlight", { +minetest.register_chatcommand("we-fixlight", { params = "", description = "Fix the lighting in the current WorldEdit region", privs = {worldedit=true}, @@ -810,7 +810,7 @@ minetest.register_chatcommand("/fixlight", { end), }) -minetest.register_chatcommand("/hide", { +minetest.register_chatcommand("we-hide", { params = "", description = "Hide all nodes in the current WorldEdit region non-destructively", privs = {worldedit=true}, @@ -820,7 +820,7 @@ minetest.register_chatcommand("/hide", { end), }) -minetest.register_chatcommand("/suppress", { +minetest.register_chatcommand("we-suppress", { params = "", description = "Suppress all in the current WorldEdit region non-destructively", privs = {worldedit=true}, @@ -831,7 +831,7 @@ minetest.register_chatcommand("/suppress", { end, check_set), }) -minetest.register_chatcommand("/highlight", { +minetest.register_chatcommand("we-highlight", { params = "", description = "Highlight in the current WorldEdit region by hiding everything else non-destructively", privs = {worldedit=true}, @@ -842,7 +842,7 @@ minetest.register_chatcommand("/highlight", { end, check_set), }) -minetest.register_chatcommand("/restore", { +minetest.register_chatcommand("we-restore", { params = "", description = "Restores nodes hidden with WorldEdit in the current WorldEdit region", privs = {worldedit=true}, @@ -852,7 +852,7 @@ minetest.register_chatcommand("/restore", { end), }) -minetest.register_chatcommand("/save", { +minetest.register_chatcommand("we-save", { params = "", description = "Save the current WorldEdit region to \"(world folder)/schems/.we\"", privs = {worldedit=true}, @@ -885,7 +885,7 @@ minetest.register_chatcommand("/save", { end), }) -minetest.register_chatcommand("/allocate", { +minetest.register_chatcommand("we-allocate", { params = "", description = "Set the region defined by nodes from \"(world folder)/schems/.we\" as the current WorldEdit region", privs = {worldedit=true}, @@ -926,7 +926,7 @@ minetest.register_chatcommand("/allocate", { end, }) -minetest.register_chatcommand("/load", { +minetest.register_chatcommand("we-load", { params = "", description = "Load nodes from \"(world folder)/schems/[.we[m]]\" with position 1 of the current WorldEdit region as the origin", privs = {worldedit=true}, @@ -974,7 +974,7 @@ minetest.register_chatcommand("/load", { end, }) -minetest.register_chatcommand("/lua", { +minetest.register_chatcommand("we-lua", { params = "", description = "Executes as a Lua chunk in the global namespace", privs = {worldedit=true, server=true}, @@ -993,7 +993,7 @@ minetest.register_chatcommand("/lua", { end, }) -minetest.register_chatcommand("/luatransform", { +minetest.register_chatcommand("we-luatransform", { params = "", description = "Executes as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region", privs = {worldedit=true, server=true}, @@ -1013,7 +1013,7 @@ minetest.register_chatcommand("/luatransform", { end), }) -minetest.register_chatcommand("/mtschemcreate", { +minetest.register_chatcommand("we-mtschemcreate", { params = "", description = "Save the current WorldEdit region using the Minetest Schematic format to \"(world folder)/schems/.mts\"", privs = {worldedit=true}, @@ -1038,7 +1038,7 @@ minetest.register_chatcommand("/mtschemcreate", { end), }) -minetest.register_chatcommand("/mtschemplace", { +minetest.register_chatcommand("we-mtschemplace", { params = "", description = "Load nodes from \"(world folder)/schems/.mts\" with position 1 of the current WorldEdit region as the origin", privs = {worldedit=true}, @@ -1061,7 +1061,7 @@ minetest.register_chatcommand("/mtschemplace", { end, }) -minetest.register_chatcommand("/mtschemprob", { +minetest.register_chatcommand("we-mtschemprob", { params = "start/finish/get", description = "Begins node probability entry for Minetest schematics, gets the nodes that have probabilities set, or ends node probability entry", privs = {worldedit=true}, @@ -1102,7 +1102,7 @@ minetest.register_on_player_receive_fields( end ) -minetest.register_chatcommand("/clearobjects", { +minetest.register_chatcommand("we-clearobjects", { params = "", description = "Clears all objects within the WorldEdit region", privs = {worldedit=true}, -- cgit v1.2.3