mojira.dev
MC-4877

Mobspawner still don't work

This bug only work on custom spawner("SpawnData" Tag must be set) : most of adventure map are broken
The mob spawner will always spawn the mob at the same place(into the mobSpawner or block next to).
The bug come from here :
In the TileEntityMobSpawner class, in the updateEntity method, before the mob get Spawned, his random position and Rotation are set, but at the next line, a method set the entity NBTTag, and so set his position again but not randomly this time.
You can easily fix that by setting entity's position BEFORE setting his NBTTag.
This issue come from the same bug : MC-1530

Comments 2

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

No answer on querry, assuming no longer an issue.

mrpingouin1

(Unassigned)

Unconfirmed

NBT, custom, entity, mobSpawner, spawn

Minecraft 1.4.6

Retrieved