mojira.dev
MC-60472

Hostile Mobs Do Not Spawn in Spectator Mode

In spectator mode hostile mobs will not naturally spawn. Even when summoned they will disappear. I was in Hard mode. I tried to go to gamemode 1, summon a hostile and then go back to gamemode 3. I was able to summon the hostile in gamemode 1 but when I went to gamemode three it (the creeper) disappeared. Is this intentional? (was testing in 14w27b...may be a problem in earlier snapshots).

Linked issues

Comments 2

This is intentional. Mobs despawn if they are further than 128 blocks from a player. When you are in spectator mode, you should not count as a player otherwise you could influence the world. Since you are not a player, their is no player within 128 blocks so it despawns. If you name the mob and then go into spectator mode, you may notice that the mob loses all ai, this is also to do with there being no player within range.

Iain Reinboth

(Unassigned)

Unconfirmed

Minecraft 14w27b

Retrieved