Using a Golden Dandelion on a baby animal that is age locked in order to remove the age lock will also remove its persistence, even if the animal should remain persistent due to other factors. (most notably, having a name tag applied to it)
This is caused by the method setAgeLocked in the AgeableMob class calling mob.setPersistenceRequired while only taking into account the age locking itself, and not other factors that should result in persistence.
Steps to reproduce:
Spawn, summon, or encounter a baby animal
Use the
/data get entitycommand to verify that itsAgeLockedvalue is0b, and itsPersistenceRequiredvalue is also0bUse a named Name Tag item to apply a name to the mob
Use the
/data get entitycommand to verify that itsPersistenceRequiredvalue has now become1b, as expected, indicating the mob will no longer despawnUse a Golden Dandelion item to lock the baby’s aging
Use the
/data get entitycommand to verify that itsAgeLockedvalue has now become1b, as expectedUse a second Golden Dandelion item to unlock the baby’s aging
Expected Result:
Using the
/data get entitycommand, you’ll see itsAgeLockedvalue has returned to0bas expected, and itsPersistenceRequiredvalue has remained1bdue to the baby having a name tag applied, preventing it from despawning
Actual Result:
Using the
/data get entitycommand, you’ll see itsAgeLockedvalue has returned to0bas expected, however itsPersistenceRequiredvalue has also become0b, meaning the baby can despawn again despite still having a name tag applied
Attachments
Comments 6
Thank you for your report!
We're tracking this issue in https://report.bugs.mojang.com/servicedesk/customer/portal/2/MC-306097 , so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Fixed. Please check the Fix Version/s field in that ticket to see in which version this behavior was or will be fixed.
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 (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- 📓 Project Summary -- ✍️ Feedback and Suggestions -- 📖 Game Wiki
Can confirm that this is a separate issue.
MC-306097 is referring to mobs not being persistent after being given a golden dandelion, which was fixed, whereas this is stating that mobs that are persistent beforehand get their persistence removed upon giving them the dandelion for the second time.
This removes persistence from mobs that should still have it (such as a name tagged mob which was shown in the video I attached.)
Can confirm as of 26.1-snapshot-7.
It removes the
PersistenceRequiredwhen the golden dandelion is unapplied.This includes special name tags like Toast, jeb_, Grumm and Dinnerbone.
I applied/removed it to/from a squid towards the end of this video and it caused the squid to despawn despite being named via a nametag.
The cows are showcasing the issue via the data get command.