Here's a mod that is based on an old BASIC script that I used to play around with back in the early 1980s(!).
The player crafts a Maze Generating Block, which when right-clicked, opens an interactive form that allows the player to select wall and floor materials, as well as the width of the maze (odd numbers less than 93). Then the player left-clicks the Maze Generating Block and it randomly generates a 3-block high, hedge maze, complete with a start and finish.
Recipe:
Code: Select all
Maze Generating Block
+---------------+---------------+---------------+
| cactus | cactus | cactus |
+---------------+---------------+---------------+
| cactus | | cactus |
+---------------+---------------+---------------+
| desert stone | desert stone | desert stone |
+---------------+---------------+---------------+
License:
Sourcecode: WTFPL
Graphics: WTFPL
Thanks to mauvebic for showing me how to replace goto statements with recursive functions, to make the mod work on linux servers as well.
Download:
https://github.com/thefamilygrog66/maze ... master.zip
Browse code on GitHub:
https://github.com/thefamilygrog66/maze
Screenshots:
Maze Generating Block placed on the ground
Menu to change settings, with defaults shown
An aerial view of the default generated hedge maze (39x39 wool:dark_green walls and default:desert_stone floor)
A treetop maze with default:leaves walls and default:tree floor
Walls of default:ice with default:dirt_with_snow floor
Hell maze, with default:obsidian walls and default:lava_source floor!
The original BASIC program (for Commodore 64)