mojira.dev
MC-111814

Spawners turning back into pig spawners

When a mob spawns from a custom spawner gotten using the /give command, it reverts to a pig spawner after the first spawn cycle.

Related issues

Attachments

Comments

migrated
[media][media][media]
SunCat

Please provide the command for the spawner

migrated

I did, it is in the picture... The only part cut out is "give." If you need the whole command in text then here:

/give @p mob_spawner 1 0 {BlockEntityTag:{SpawnData:{id:Cow}}}
tryashtar

You need to bundle your information in SpawnPotentials.

migrated

How does one do that? Also, when did this change?

tryashtar
/give @p mob_spawner 1 0 {BlockEntityTag:{SpawnPotentials:[{Weight:1,Entity:{id:"minecraft:sheep",CustomName:"List of mobs this spawner will choose from"}}],SpawnData:{id:"minecraft:cow",CustomName:"The first entity to spawn before new ones take over (not optional)"}}}

I don't remember quite when SpawnPotentials was introduced, but it was long ago.

migrated

Ah alright. Must be new to this version that you have to ise that command, as my command worked in I think 1.10.

tryashtar

Hm, there were some changes with whether SpawnData was automatically copied over when SpawnPotentials were not defined. And I noticed that just setting SpawnPotentials will make the first mob a pig and then start working as normal. Perhaps that's a new bug of itself.

migrated

Maybe. In the version before 1.11.2, my command worked, but the mob spawner always looked like a pig spawner.

Skylinerw

This is the resurgence of MC-92282 (which is a valid issue as it was fixed prior).

migrated

(Unassigned)

Unconfirmed

Minecraft 1.11.2

Retrieved