The bug
If you place a spawner that is outside during the day, and have it spawn phantoms, it will spawn them, regardless.
How to reproduce
Run
/setblock ~ ~ ~1 minecraft:spawner{SpawnData:{entity:{id:"minecraft:phantom"}},Delay:1}
→ ❌ Phantoms will spawn
Linked issues
is duplicated by 2
Attachments
Comments 13

Can confirm for 1.13.1, although this might be WAI.
Command: /setblock ~ ~1 ~ spawner{SpawnData:{id:phantom},Delay:100}
Can confirm for 1.13.1, although this might be WAI.
Command: /setblock ~ ~1 ~ spawner{SpawnData:{id:phantom},Delay:100}
Most likely caused by the fact that Phantoms aren't spawned in the world like normal mobs, but placed through special world code (same as patrols). The nighttime spawning is a requirement of this code only, not phantoms themselves.
Most likely caused by the fact that Phantoms aren't spawned in the world like normal mobs, but placed through special world code (same as patrols). The nighttime spawning is a requirement of this code only, not phantoms themselves.
Can confirm in 1.19. Command usage regarding spawners has changed slightly in more modern versions of the game and because of this, the reproduction command that's currently within the description of this ticket no longer works, as a result, reproducing this issue can be difficult. Here's the new and updated command in order to recreate this issue.
/setblock ~ ~ ~1 minecraft:spawner{SpawnData:{entity:{id:"minecraft:phantom"}},Delay:1}