Dungeon Generation

Started by Snakeypro1 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dungeon Generation
Tue, 07/25/2023 - 13:45 (edited)

Hello everyone, I am working on a minecraft mod that adds new structures, mainly dungeons. I have already made an entrance area, along with 4 paths that go out from it. (image below)

 

 

 

 

 

 

 

 

 

 

 

 

 

I am struggling to figure out the rest (the actual rooms in the dungeon). Does anyone know an easy way to generate rooms for a dungeon? I have already looked at multiple youtube videos for this and still don't know how to easily do this. Does anyone know how?

Edited by Snakeypro1 on Tue, 07/25/2023 - 13:45
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Jigsaw blocks are what most…
Thu, 07/27/2023 - 05:24

Jigsaw blocks are what most people recommend, but I've always found them a bit limited. I recommend creating custom generator blocks to build your dungeon. Save the central structure, then make special blocks that randomly place rooms, furniture, traps, etc; based on how they're positioned. This is always how I've randomized structures.

Fair warning though, structure generation can be pretty finnicky, and you also have to keep in mind all the different terrain said structure may wind up generating in. Also, blocks generated in structures don't tick naturally, so if you want custom blocks to generate rooms and stuff, you'll likely want to begin with a single block that places the main structure, and have a custom procedure to force it to tick on initial structure generation. (Once your custom blocks start placing structures, these will tick normally. It's just the initial structure that doesn't tick blocks.)