Page 1 of 1

[Mod] Incredible Maze Generator [incrediblemaze]

PostPosted: Wed Mar 01, 2017 20:38
by orwell
This mod is a maze generator
I started this to implement a maze generation algorithm that I use when I draw mazes on paper. The result is not exactly this algorithm since computers are apparently too dumb for it, but it's worth to be shared anyway.

Things you need to know about the mazes:
- Start at one corner and find your way to the opposite corner
- There is exactly one way
- Big mazes will drive you crazy
- Mazes do not have a floor or a top cover by default, add this using WorldEdit if you want.

Generating a maze:
- Use WorldEdit to define 2 opposing corners. The maze is spawned between them and all walls are as high as the height difference between the two positions.
- Execute this chatcommand:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/maze <any random number as seed>

Note: the maze always has odd dimensions, if the x/z distance between pos1 and pos2 is even, the dimension is just rounded down.

Changing maze materials:
- On top of init.lua, you find some content id assignments. Change the node names in there.
- Alternatively, you can just replace the generated nodes with the WorldEdit //replace command.

Dependencies:
default
worldedit

Download:
incrediblemaze.zip
v. 1.0
(4.45 KiB) Downloaded 151 times


License: WTFPL

Re: [Mod] Incredible Maze Generator [incrediblemaze]

PostPosted: Mon Mar 20, 2017 17:25
by azekill_DIABLO
has it an esape?

Re: [Mod] Incredible Maze Generator [incrediblemaze]

PostPosted: Tue Mar 21, 2017 11:41
by orwell
It does not generate entry and exit by itself, just create it at the corners

Re: [Mod] Incredible Maze Generator [incrediblemaze]

PostPosted: Tue Mar 21, 2017 11:57
by azekill_DIABLO
hah. still cool for mapmakers!

Re: [Mod] Incredible Maze Generator [incrediblemaze]

PostPosted: Tue Mar 21, 2017 16:43
by paramat
If it's this incredible i would like to see a screenshot.

Re: [Mod] Incredible Maze Generator [incrediblemaze]

PostPosted: Tue Mar 21, 2017 16:50
by azekill_DIABLO
too much incredibility to post on forums IMHO.

Re: [Mod] Incredible Maze Generator [incrediblemaze]

PostPosted: Wed Mar 22, 2017 11:58
by ErrorNull
I'M BLIND! Oh wait.... no, there's in fact no screenshot.