Minecraft wiki entry for Spawn, associated text: For all dimensions, structure-based spawns take priority over biome for hostile spawns. This means that in a swamp hut, pillager outpost, nether fortress (outer bounding box only when there is nether bricks below it‌[JE only]), and ocean monument, one sees only the corresponding hostile mobs for that structure within that structure.