mojira.dev
MC-133872

Spawners spawn phantoms in sunlight

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

  1. Run

    /setblock ~ ~ ~1 minecraft:spawner{SpawnData:{entity:{id:"minecraft:phantom"}},Delay:1}

    → ❌ Phantoms will spawn

Linked issues

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.

3 more comments

Can confirm in 21w06a.

Can confirm in 1.17.

Can confirm in 1.17.1.

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}

Can confirm in 1.19.2.

Solar Master

(Unassigned)

Confirmed

Mob spawning

Minecraft 1.13-pre10, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w43c, ..., 1.17.1, 1.19, 1.19.2, 1.20.3, 1.21.4

Retrieved