Skip to content

ferenc-nemeth/minecraft-maze-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

minecraft-maze-generator

Maze generator scripts for Minecraft.

Table of Contents

Introduction

A maze generator for Minecraft with three different algorithms.

How it works

Demostration video on youtube.

There are three maze generator Python scripts:

  • Recursive division (maze_recursive_division.py) [1]
  • Recursive backtracking (maze_recursive_backtracking.py) [2]
  • Binary tree (maze_binary_tree.py) [3]

The dimensions and the material of the maze can be changed.
The maze is always generated to the south of the player.


Figure 1. Generated mazes.

How to use it

Install Minecraft, Python 2.7, numpy and Raspberry Jam Mod to run the scripts [4]. Then you can run the generators with the following command:

/py maze_<algorithm> <width> <height> <length> <block>

For example:

/py maze_recursive_division 21 2 21 wool_pink
/py maze_recursive_backtracking 15 1 55 obsidian
/py maze_binary_tree 35 5 35 diamond_ore

References

[1] Wikipedia - Recursive divison method
[2] Wikipedia - Recursive backtracking method
[3] Wikipedia - Binary tree method
[4] Instructables - Python coding for Minecraft