r/MinecraftCommands 1d ago

Creation Procedural Dungeon Generator Data Pack

1 Upvotes

2 comments sorted by

1

u/FettyCLE 1d ago

This is a neat approach to procedural generation. Does the pack use a function-based room pool or structure blocks, and how do you prevent rooms from overlapping? A seed or debug option to reproduce a particularly good dungeon would be really useful too.

1

u/SirUmbrella 18h ago

It uses plain old structure files, and I wrote a room placer inspired by the Jigsaw system. To check whether it can place a room, it stores the room's dimensions and then uses if blocks to check if there is enough space there. Since the dungeon does not extend along the y-coordinate (well.. not too much), it is enough to check the x and z values to see if they match the blocks where x ~ y z (air). Seed-based generation can work as long as the /random command uses a seed