Skip to content

Commit fe2a0e7

Browse files
sfan5MoNTE48
authored andcommitted
Put commands into categories for //help
1 parent dc8c61b commit fe2a0e7

File tree

4 files changed

+106
-10
lines changed

4 files changed

+106
-10
lines changed

worldedit_commands/cuboid.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ local S = minetest.get_translator("worldedit_commands")
33
worldedit.register_command("outset", {
44
params = "[h/v] <amount>",
55
description = S("Outset the selected region."),
6+
category = S("Region operations"),
67
privs = {worldedit=true},
78
require_pos = 2,
89
parse = function(param)
@@ -42,6 +43,7 @@ worldedit.register_command("outset", {
4243
worldedit.register_command("inset", {
4344
params = "[h/v] <amount>",
4445
description = S("Inset the selected region."),
46+
category = S("Region operations"),
4547
privs = {worldedit=true},
4648
require_pos = 2,
4749
parse = function(param)
@@ -79,6 +81,7 @@ worldedit.register_command("inset", {
7981
worldedit.register_command("shift", {
8082
params = "x/y/z/?/up/down/left/right/front/back [+/-]<amount>",
8183
description = S("Shifts the selection area without moving its contents"),
84+
category = S("Region operations"),
8285
privs = {worldedit=true},
8386
require_pos = 2,
8487
parse = function(param)
@@ -114,6 +117,7 @@ worldedit.register_command("shift", {
114117
worldedit.register_command("expand", {
115118
params = "[+/-]x/y/z/?/up/down/left/right/front/back <amount> [reverse amount]",
116119
description = S("Expands the selection in the selected absolute or relative axis"),
120+
category = S("Region operations"),
117121
privs = {worldedit=true},
118122
require_pos = 2,
119123
parse = function(param)
@@ -163,6 +167,7 @@ worldedit.register_command("expand", {
163167
worldedit.register_command("contract", {
164168
params = "[+/-]x/y/z/?/up/down/left/right/front/back <amount> [reverse amount]",
165169
description = S("Contracts the selection in the selected absolute or relative axis"),
170+
category = S("Region operations"),
166171
privs = {worldedit=true},
167172
require_pos = 2,
168173
parse = function(param)

0 commit comments

Comments
 (0)