mojira.dev
MC-248592

spawners ignore data if placed in survival

I would like to add the ability to silk touch and keep the data of spawners, but nothing I try seems to be working. I instead decided to give the player an empty spawner so they can just use a spawn egg without having free access to a pig spawner in the meantime. I used the following command/nbt data:

 

/give @p spawner{BlockEntityTag:{SpawnData:{id:""},SpawnPotentials:[{id:""}]}}

 

This spawner works fine if placed in creative. It is empty and does not spawn mobs.

 

The EXACT same spawner ignores nbt data and defaults to a pig spawner if placed in survival.

Linked issues

Comments 1

Thank you for your report!
We're tracking this issue in MC-105216, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

aceplante

(Unassigned)

Unconfirmed

(Unassigned)

1.18.1

Retrieved