mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
//maze, //maze3d: registere with our new WEA core rather than WorldEdit
This commit is contained in:
parent
c53fb32d2b
commit
3bcca82b43
1 changed files with 3 additions and 3 deletions
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue