The bug
If a warden gets angry at a pig, and said pig transforms into a zombified piglin before the warden can kill it, the warden will not remain angry at this zombified piglin and will need to become aggressive toward it a second time.
How to reproduce
Summon a pig
Summon a warden nearby
Have the warden get angry at the pig
After the warden roars, run the command
/execute at @e[type=pig] run summon minecraft:lightning_bolt ~ ~ ~
Expected results
The warden would remain angry even when the targeted pig becomes a zombified piglin.
Actual results
It loses its target.
Thank you for your report!
We're tracking this issue in MC-265066, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
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