[Mod] Incredible Maze Generator [incrediblemaze]

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
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:
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 135 times


License: WTFPL
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

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

Re: [Mod] Incredible Maze Generator [incrediblemaze]

by azekill_DIABLO » Mon Mar 20, 2017 17:25

has it an esape?
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
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: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] Incredible Maze Generator [incrediblemaze]

by azekill_DIABLO » Tue Mar 21, 2017 11:57

hah. still cool for mapmakers!
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: 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: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] Incredible Maze Generator [incrediblemaze]

by azekill_DIABLO » Tue Mar 21, 2017 16:50

too much incredibility to post on forums IMHO.
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
ErrorNull
Member
 
Posts: 94
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.
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 10 guests

cron