addSpawn

fun addSpawn(mobCategory: MobCategory, spawnerData: MobSpawnSettings.SpawnerData)

Adds a SpawnerData to the spawners setting of the biome's mob spawn settings.


fun addSpawn(mobCategory: MobCategory, entityType: EntityType<*>, weight: Int, minGroupSize: Int, maxGroupSize: Int)

Adds a SpawnerData to the spawners setting of the biome's mob spawn settings by creating a new SpawnerData instance out of the given entityType, weight, minGroupSize and maxGroupSize.


fun addSpawn(mobCategory: MobCategory, entityType: EntityType<*>, minGroupSize: Int = 2, maxGroupSize: Int = 4)

Adds a SpawnerData to the spawners setting of the biome's mob spawn settings by creating a new SpawnerData instance out of the given entityType, minGroupSize and maxGroupSize. The weight is set to 1.