From ec32f944ed4b77876d010e938a6d959ee7c2ad78 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Tue, 22 Oct 2024 06:46:23 -0700 Subject: [PATCH] small refactor --- worldeditadditions_commands/commands/maze.lua | 4 ++-- worldeditadditions_commands/commands/replacemix.lua | 2 +- worldeditadditions_commands/commands/scale.lua | 2 +- worldeditadditions_commands/commands/spiral2.lua | 2 +- worldeditadditions_commands/commands/test/test.lua | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/worldeditadditions_commands/commands/maze.lua b/worldeditadditions_commands/commands/maze.lua index 46d7b74..6bff54d 100644 --- a/worldeditadditions_commands/commands/maze.lua +++ b/worldeditadditions_commands/commands/maze.lua @@ -61,7 +61,7 @@ end -- ██ ██ ██ ██ ██ ███ ██ -- ██ ██ ██ ██ ███████ ███████ -wea_c.register_command("maze", { +worldeditadditions_core.register_command("maze", { params = " [ [ []]]", 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 = " [ [ [ []]]]", 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 }, diff --git a/worldeditadditions_commands/commands/replacemix.lua b/worldeditadditions_commands/commands/replacemix.lua index 747eb0b..deae423 100644 --- a/worldeditadditions_commands/commands/replacemix.lua +++ b/worldeditadditions_commands/commands/replacemix.lua @@ -7,7 +7,7 @@ local Vector3 = wea_c.Vector3 -- ██████ █████ ██████ ██ ███████ ██ █████ ██ ████ ██ ██ ███ -- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ -- ██ ██ ███████ ██ ███████ ██ ██ ██████ ███████ ██ ██ ██ ██ ██ -wea_c.register_command("replacemix", { +worldeditadditions_core.register_command("replacemix", { params = " [] [] [ []] [ []] ...", description = "Replaces target_node with a mix of other nodes. Functions simmilarly to //mix. 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 }, diff --git a/worldeditadditions_commands/commands/scale.lua b/worldeditadditions_commands/commands/scale.lua index a70db16..e581e34 100644 --- a/worldeditadditions_commands/commands/scale.lua +++ b/worldeditadditions_commands/commands/scale.lua @@ -26,7 +26,7 @@ end -- ███████ ██ ███████ ██ █████ -- ██ ██ ██ ██ ██ ██ -- ███████ ██████ ██ ██ ███████ ███████ -wea_c.register_command("scale", { +worldeditadditions_core.register_command("scale", { params = " | [ [ ]]", 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 }, diff --git a/worldeditadditions_commands/commands/spiral2.lua b/worldeditadditions_commands/commands/spiral2.lua index e663752..6b5aa66 100644 --- a/worldeditadditions_commands/commands/spiral2.lua +++ b/worldeditadditions_commands/commands/spiral2.lua @@ -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] [ [ [] ] ]", 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 }, diff --git a/worldeditadditions_commands/commands/test/test.lua b/worldeditadditions_commands/commands/test/test.lua index 9d430e7..d5ddafc 100644 --- a/worldeditadditions_commands/commands/test/test.lua +++ b/worldeditadditions_commands/commands/test/test.lua @@ -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 || || help ", description = "Run a test or list all tests", privs = {worldedit = true},