mojira.dev
MC-174055

Spawner items with custom data do not keep their custom data when placed in survival

I was trying out a datapack that would keep the spawners data when broken with silk touch, and before I finished testing it out and working out any issues I noticed that while it would keep it's custom data when broken, if you placed it down in survival it placed as a default pig spawner instead of with the custom data. I tried it a few times and no matter what in survival this happens, but as soon as you place a spawner with data in creative all works fine. Seems somewhat intentional however this is disappointing if so because that kinda removes map making and datapack potential.

Linked issues

Comments 2

Yes, that appears to be intended, see MC-105216.

idk how comments here work or if this reply will ever get seen by a mod, but that is very strange as I'm pretty sure beehives use BlockEntity data. Anyway that kinda sucks but I'll check adventure mode later to see if it works then, if not I guess I'll do a feedback post and see how that goes.

Plane master

(Unassigned)

Unconfirmed

(Unassigned)

20w10a

Retrieved