Cuberite Forum
MazeGen plugin: generate mazes - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html)
+--- Thread: MazeGen plugin: generate mazes (/thread-3434.html)



MazeGen plugin: generate mazes - xoft - 04-09-2024

https://github.com/madmaxoft/MazeGen

Plugin that allows users to generate mazes. Requires WorldEdit to be installed. To generate a maze, select an area using WorldEdit, then invoke the `/mg` command, specifying parameters as needed.

The plugin can also be used through the server console, specifying the world and coords as parameters, rather than reading them from a player's WorldEdit selection.

Technical
Internally, the plugin uses the Recursive backtracker algorithm to generate the maze. Due to Lua having a limited stack depth of 100 levels only, instead of using the call-stack, the plugin keeps its own stack of cells to backtrack to.

Commands

General
  • /mg - Generates a maze
    Permission required: mazegen.mg
    The following parameter combinations are recognized:
    /mg BlockType [CellSize] [ExtraPassagesPercent]


Permissions
  • - mazegen.mg -
    • Commands affected:
      - /mg