When a neutral mob like a Wolf or a Bee is angry at an entity, you can't calm it down by manually reseting both NBT responsible of this behavior which are AngryAt( and AngerTime), except if the mob isn't able to reach you anymore (if you're in creative mode for example, or far enough from the mob).
Trying to remove only AngryAt nbt will fill it back the tick after with the previous target UUID.
Trying to set AngryAt on any value (0 or 1 or whatever) will fill it back the tick after with the previous value.
Trying to reset both nbt in the same tick (in any order) will still refill both nbt with their previous values.
How to reproduce:
Turn yourself in Survival or Adventure mode.
Summon a wolf
summon wolf
Hit the wolf
Run those commands separatly or simultaneously (in the same tick) with command blocks or chat, or with a datapack function:
data remove entity @e[type=wolf,sort=nearest,limit=1] AngryAt data modify entity @e[type=wolf,sort=nearest,limit=1] AngerTime set value 0
-> The wolf will still be angry.
(You can see that both nbt have take their old values using the "/data get" command)
Re-iterate the whole operation, but set yourself in Creative mode between the step 3 and 4.
Since the wolf isn't able to reach you anymore, you'll see that running the command of the step 4 will calm the wolf.
Thank you for your report!
We're tracking this issue as MC-188091, 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
-- 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.