Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
This is a data pack made to be expanded or modified - and contains the basic files for a randomly generating dungeon.
Dungeons by default generate on a 7x7 grid, which fits into a normal Minecraft map very well. Each room is one chunk large. By default, the center room will only have one exit (southern) and the room connecting to it will have all four possible exits (north, south, east and west)
Creating a map in the dungeon will only reveal rooms you've been to. Superflat required for the map system to work.
Dungeon generates at 0 0 0
To generate a dungeon, use /function dun:generate. Please don't run this command twice. You can run it again once the dungeon has generated. Your game may freeze for a second if you are running this at a low ram level (or in singleplayer).
This engine supports distance! Every room has the scoreboard value "dun.dist" stating how many rooms you have to walk through to reach it (starting from room 1, the center). By default, a dungeon "exit" portal will generate at the furthest possible room.
Note:
- A full guide to this engine is in the works. This is merely a test created for someone and it was requested that I share this publicly
- Please read the license if you wish to use this in your project :)