//maze, //maze3d: registere with our new WEA core rather than WorldEdit

This commit is contained in:
Starbeamrainbowlabs 2022-05-19 02:43:19 +01:00
parent c53fb32d2b
commit 3bcca82b43
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
local wea = worldeditadditions
local we_c = worldeditadditions_commands
local wea_c = worldeditadditions_core
local Vector3 = worldeditadditions.Vector3
local function parse_params_maze(params_text, is_3d)
@ -61,7 +61,7 @@ end
-- ██ ██ ██ ██ ██ ███ ██
-- ██ ██ ██ ██ ███████ ███████
worldedit.register_command("maze", {
wea_c.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 },
@ -100,7 +100,7 @@ worldedit.register_command("maze", {
-- ██ ██ ██ ██ ██ ███ ██ ██ ██ ██
-- ██ ██ ██ ██ ███████ ███████ ██████ ██████
worldedit.register_command("maze3d", {
wea_c.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 },