Started by
JamminNun
on
Topic category: Help with Minecraft modding (Java Edition)
I am thinking of adding dungeons to my mod that generate randomly all over the world (either on surface or underground), but I have no idea how to do it.
My idea is to have segmented multiroom dungeons with rooms being chosen randomly, the size preferably being random too though it isn't that much of a priority. If someone could help out with my idea it would be really cool.
You can use Feature mod element to create a structure. While It's not really a structure, it works pretty similar(except you cant use /locate and some other small things).
As how to create multiroom dungeon...
Well the best way is to use Jigsaws, but
1. They don't work for features
2. Require manual setup with code.
So you can watch this tutorial:
https://youtu.be/ikHn0YDuSkY
The tutorial you linked is great, but it has nothing about randomising the rooms, even in a set amount of rooms and size of the structure.
I replied this same question something like 15 times last year
Make a new block (invisible if you want) and assign it to your structure A. When structure A generates it has our block where you want
When block placed if randomize = generate structure B if not then structure C
And so on
This way you can create all big structures you want and randomize rooms generation (for example in a dungeon)
This dude explained random generation in the best way. Check out the forum https://mcreator.net/forum/62582/guide-random-generated-structures