Rename warden spawn egg in an anvil, OR use command "/give @p warden_spawn_egg{display:{Name:'[{"text":"Test"}]'}} 1"
Use spawn egg
Warden digs down and despawns after 60 seconds of not detecting any mobs.
Linked issues
Comments 2
This isn't with /summon, Anthony.
Trillian, having a name is not what prevents despawning, for any mob. PersistenceRequired does. Name tags set both NBT, renamed spawn eggs do not.
This is actually a duplicate of MC-54556,which is WAI.
Thank you for your report!
We're tracking this issue as MC-249393, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Won't Fix, which means this is considered a bug but won't be fixed. The description of that ticket or the comments might explain the rationale. 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