mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
small refactor
This commit is contained in:
parent
a7f98e07e1
commit
ec32f944ed
5 changed files with 6 additions and 6 deletions
|
@ -61,7 +61,7 @@ end
|
|||
-- ██ ██ ██ ██ ██ ███ ██
|
||||
-- ██ ██ ██ ██ ███████ ███████
|
||||
|
||||
wea_c.register_command("maze", {
|
||||
worldeditadditions_core.register_command("maze", {
|
||||
params = "<replace_node> [<path_length> [<path_width> [<seed>]]]",
|
||||
description = "Generates a maze covering the currently selected area (must be at least 3x3 on the x,z axes) with replace_node as the walls. Optionally takes a (integer) seed and the path length and width (see the documentation in the worldeditadditions README for more information).",
|
||||
privs = { worldedit = true },
|
||||
|
@ -101,7 +101,7 @@ wea_c.register_command("maze", {
|
|||
-- ██ ██ ██ ██ ██ ███ ██ ██ ██ ██
|
||||
-- ██ ██ ██ ██ ███████ ███████ ██████ ██████
|
||||
|
||||
wea_c.register_command("maze3d", {
|
||||
worldeditadditions_core.register_command("maze3d", {
|
||||
params = "<replace_node> [<path_length> [<path_width> [<path_depth> [<seed>]]]]",
|
||||
description = "Generates a 3d maze covering the currently selected area (must be at least 3x3x3) with replace_node as the walls. Optionally takes a (integer) seed and the path length, width, and depth (see the documentation in the worldeditadditions README for more information).",
|
||||
privs = { worldedit = true },
|
||||
|
|
|
@ -7,7 +7,7 @@ local Vector3 = wea_c.Vector3
|
|||
-- ██████ █████ ██████ ██ ███████ ██ █████ ██ ████ ██ ██ ███
|
||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||
-- ██ ██ ███████ ██ ███████ ██ ██ ██████ ███████ ██ ██ ██ ██ ██
|
||||
wea_c.register_command("replacemix", {
|
||||
worldeditadditions_core.register_command("replacemix", {
|
||||
params = "<target_node> [<chance>] <replace_node_a> [<chance_a>] [<replace_node_b> [<chance_b>]] [<replace_node_N> [<chance_N>]] ...",
|
||||
description = "Replaces target_node with a mix of other nodes. Functions simmilarly to //mix. <chance> is optional and the chance to replace the target node at all. replace_node_a is the node to replace target_node with. If multiple nodes are specified in a space separated list, then when replacing an instance of target_node one is randomly chosen from the list. Just like with //mix, if a positive integer is present after a replace_node, that adds a weighting to that particular node making it more common.",
|
||||
privs = { worldedit = true },
|
||||
|
|
|
@ -26,7 +26,7 @@ end
|
|||
-- ███████ ██ ███████ ██ █████
|
||||
-- ██ ██ ██ ██ ██ ██
|
||||
-- ███████ ██████ ██ ██ ███████ ███████
|
||||
wea_c.register_command("scale", {
|
||||
worldeditadditions_core.register_command("scale", {
|
||||
params = "<axis> <scale_factor> | <factor_x> [<factor_y> <factor_z> [<anchor_x> <anchor_y> <anchor_z>]]",
|
||||
description = "Combined scale up / down. Takes either an axis name + a scale factor (e.g. y 3 or -z 2; negative values swap the anchor point for the scale operation), or 3 scale factor values for x, y, and z respectively. In the latter mode, a set of anchors can also be specified, which indicate which size the scale operation should be anchored to.",
|
||||
privs = { worldedit = true },
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
local wea_c = worldeditadditions_core
|
||||
local Vector3 = wea_c.Vector3
|
||||
|
||||
wea_c.register_command("spiral2", {
|
||||
worldeditadditions_core.register_command("spiral2", {
|
||||
params = "[circle|square] [<replace_node=dirt> [<interval=3> [<acceleration=0>] ] ]",
|
||||
description = "Generates a spiral that fills the defined region using the specified replace node. The spiral is either square (default) or circular in shape. The interval specifies the distance between the walls of the spiral, and the acceleration specifies how quickly this value should increase.",
|
||||
privs = { worldedit = true },
|
||||
|
|
|
@ -21,7 +21,7 @@ end
|
|||
local handle_fn_result = dofile(test_dir .. "helpers/handle_fn_result.lua")
|
||||
|
||||
-- Main command
|
||||
wea_c.register_command("test", {
|
||||
worldeditadditions_core.register_command("test", {
|
||||
params = "list || <testname> <args> || help <testname>",
|
||||
description = "Run a test or list all tests",
|
||||
privs = {worldedit = true},
|
||||
|
|
Loading…
Reference in a new issue