Biome modification spawns do not work in cave biomes.
IMB11 opened this issue ยท 3 comments
(1.19.2) When creating a biome modification that targets cave biomes, the spawn settings are ignored and no injected spawns are applied:
iomeModifications.addSpawn(
biomeSelectionContext -> {
return biomeSelectionContext.getBiomeRegistryEntry().isIn(ConventionalBiomeTags.CAVES);
},
SpawnGroup.AMBIENT,
EntityType.WOLF,
100,
2,
4
);
You would expect a large amount of wolves spawning in the cave biomes now - yet this is not the case.
/tp @e[type=wolf,dy=106] @s
(I am standing on y=-46 when running this command, max y is 64
This command will teleport all of the wolves spawned in the cave biomes to the player.
As you can see, there are no wolves in the biomes.
I think you need to look at WolfEntity.canSpawn() or more accurately the SpawnRestriction class.
You won't find many grass and snow blocks above light level 8 in caves. :-)
https://github.com/misode/mcmeta/blob/data/data/minecraft/tags/blocks/wolves_spawnable_on.json
๐ We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for either a discussion thread, or a message on our discord server. Please post your request on one of these, and the conversation can continue there.