[Mod] Incredible Maze Generator [incrediblemaze]

User avatar
orwell
Member
 
Posts: 801
Joined: Wed Jun 24, 2015 18:45
Location: Raxacoricofallapatorius
GitHub: orwell96
IRC: orwell96_mt
In-game: orwell

[Mod] Incredible Maze Generator [incrediblemaze]

by orwell » Wed Mar 01, 2017 20:38

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:
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 122 times


License: LGPLv2.1
Last edited by orwell on Wed Jun 13, 2018 15:26, edited 1 time in total.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
azekill_DIABLO
Member
 
Posts: 7491
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
orwell
Member
 
Posts: 801
Joined: Wed Jun 24, 2015 18:45
Location: Raxacoricofallapatorius
GitHub: orwell96
IRC: orwell96_mt
In-game: orwell

Re: [Mod] Incredible Maze Generator [incrediblemaze]

by orwell » Tue Mar 21, 2017 11:41

It does not generate entry and exit by itself, just create it at the corners
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
azekill_DIABLO
Member
 
Posts: 7491
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
paramat
Developer
 
Posts: 3524
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: [Mod] Incredible Maze Generator [incrediblemaze]

by paramat » Tue Mar 21, 2017 16:43

If it's this incredible i would like to see a screenshot.
 

User avatar
azekill_DIABLO
Member
 
Posts: 7491
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
ErrorNull
Member
 
Posts: 201
Joined: Thu Mar 03, 2016 00:43

Re: [Mod] Incredible Maze Generator [incrediblemaze]

by ErrorNull » Wed Mar 22, 2017 11:58

I'M BLIND! Oh wait.... no, there's in fact no screenshot.
 

User avatar
SaKeL
Member
 
Posts: 653
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] Incredible Maze Generator [incrediblemaze]

by SaKeL » Mon Jul 31, 2017 17:57

Looks nice thanks.

21x21
Image

43x43
Image
Attachments
screenshot_20170731_194747-min.jpg
(532.56 KiB) Not downloaded yet
screenshot_20170731_194356-min.jpg
(447.58 KiB) Not downloaded yet
 

User avatar
Codesound
Member
 
Posts: 231
Joined: Thu Jun 09, 2016 14:56
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 6 guests