When using a parrot monster spawner using commands, for example:
/setblock ~ ~ ~ minecraft:spawner{Delay:0s,MaxNearbyEntities:5s,MaxSpawnDelay:20s,MinSpawnDelay:10s,RequiredPlayerRange:15s,SpawnCount:5s,SpawnData:{id:"minecraft:parrot"},SpawnPotentials:[{Entity:{id:"minecraft:parrot"},Weight:1}],SpawnRange:4s}
it will spawn parrots mid air. However when the air is cave_air, it will not spawn any parrots.
Note: When using the fill command to place cave_air, make sure to place another block, e.g. stone. Replacing air with cave_air seems to fail.
Linked issues
Attachments
Comments

Affects 1.20.5 Pre-Release 1

This issue still exists in Minecraft snapshot 24w21b. Note that due to the fix for MC-271911, a minecraft:air
tag now exists for the three types of air. This issue could be fixed by including that tag within the minecraft:parrots_spawnable_on
tag.
It should be in code format {{}} rather than normal format.