Introduction
Are you bored of having only 3 strongholds on the infinite map? Now it's finally fixed - you can have any amount of them!
How it works
For each of your worlds you can define density of strongholds. Density is an estimate for number of strongholds generated inside any 1000х1000 region.This number can be less then 1, if you want rare strongholds. For example, if you use density = 0.01 you get something about 1 stronghold in 10000x10000 area (of course, generation is quite random, it's just an expected value).
Things to know
- It generates additional strongholds - so vanilla ones will stay on their place.
- Obviously, strongholds will be generated only in freshly generated chunks.
- Now eyes of ender only detect vanilla strongholds. Probably I can fix it, if needed, but it can be quite tricky.
Configuration
Define densities in config file. If you do not want to change stronghold generation in some world, just don't list this world in the config. Also you can define frequency and maximum possible number of instances for each room type. In default config you can find vanilla generator parameters (maxinstances: 0 means unlimited instances). Default config:
worlds: first_example_world: density: 0.1 second_example_world: density: 1 generation: components: PortalRoom: frequency: 20 maxinstances: 1 Library: frequency: 10 maxinstances: 2 ChestCorridor: frequency: 5 maxinstances: 4 Prison: frequency: 5 maxinstances: 5 Stairs: frequency: 40 maxinstances: 0 StairsStraight: frequency: 5 maxinstances: 5 Stairs2: frequency: 5 maxinstances: 5 LeftTurn: frequency: 20 maxinstances: 0 RightTurn: frequency: 20 maxinstances: 0 Crossing: frequency: 5 maxinstances: 4 RoomCrossing: frequency: 20 maxinstances: 0
Source
InfiniteStrongholds on github.com
Future plans
Your ideas here :-)