Structure Spawns - ProjectZulu/JustAnotherSpawner GitHub Wiki
Vanilla Structure Spawning
In vanilla during Passive Spawning there are occasions where the ChunkProvider is allowed to inject entities into the spawner, overriding the default biome spawn list. This is normally used to place special entities unique to world or biome at parts of the world that are unique, i.e. Structures. The most obvious example, is in the nether. Nether fortresses have their own monster spawn list independent of the rest of the nether consisting of Blaze, Zombie Pigman, Skeleton, and Magma cubes.
JAS's Implementation
JAS replaces this injection using an internal concept called BiomeInterpreters. These interface are parsed using a handler to generate a configurable setup from the StructureSpawns.cfg
inside the world specific configuration folder.
It is divided into two parts, the spawnList and the spawnListEntries. A spawn list is a string generated for each structure that lists all entities that can be spawned. The format is simple, entity names separated by commas.If no entities are listed, the regular biome spawns are used. For every entity in every structure a spawnListEntry is generated below upon which, like regular spawning, sets the relative chance, min and max spawn groupings.
Noteworthy Differences
Unlike vanilla, Structure Spawning in JAS occurs for both Passive and Chunk spawning (as opposed to only Passive spawning in vanilla). Also, Mineshaft and Strongholds may have their own spawnlists. By default they are empty and rely on the biome spawn lists, as in vanilla.