Bee Tags such as AngerTime and AngryAt do not retain values set by commands such as /data
I've modified a 1.15 datapack to work for 1.16 by changing the commands to:
execute as @a[nbt={Inventory:[{Slot: 100b, id: "minecraft:chainmail_boots", Count: 1b}, {Slot: 101b, id: "minecraft:chainmail_leggings", Count: 1b}, {Slot: 102b, id: "minecraft:chainmail_chestplate", Count: 1b}, {Slot: 103b, id: "minecraft:chainmail_helmet", Count: 1b}]}] at @s if entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0},distance=..1.8] run data remove entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0}] AngryAt
execute as @a[nbt={Inventory:[{Slot: 100b, id: "minecraft:chainmail_boots", Count: 1b}, {Slot: 101b, id: "minecraft:chainmail_leggings", Count: 1b}, {Slot: 102b, id: "minecraft:chainmail_chestplate", Count: 1b}, {Slot: 103b, id: "minecraft:chainmail_helmet", Count: 1b}]}] at @s if entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0},distance=..1.8] run data modify entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0}] AngerTime set value 0
These commands are supposed to make bees forget that they are angry at you when you wear full chainmail armor (an apiary suit). While it does make them "forget", but the bees keep reverting back to their angry state only to be set again causing quirky behaviors of a bee becoming angry, then passive, then angry, over and over again.
Edit: This seems to have been resolved by Prerelease 6. The bees retain their data now. You can close this bug report now.
Environment
OSX Catalina
Graal 11
Linked Issues
Created Issue:
Bee Tags such as AngerTime and AngryAt do not retain values set by commands such as /data
I've modified a 1.15 datapack to work for 1.16 by changing the commands to:
execute as @a[nbt={Inventory:[{Slot: 100b, id: "minecraft:chainmail_boots", Count: 1b}, {Slot: 101b, id: "minecraft:chainmail_leggings", Count: 1b}, {Slot: 102b, id: "minecraft:chainmail_chestplate", Count: 1b}, {Slot: 103b, id: "minecraft:chainmail_helmet", Count: 1b}]}] at @s if entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0},distance=..1.8] run data remove entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0}] AngryAt execute as @a[nbt={Inventory:[{Slot: 100b, id: "minecraft:chainmail_boots", Count: 1b}, {Slot: 101b, id: "minecraft:chainmail_leggings", Count: 1b}, {Slot: 102b, id: "minecraft:chainmail_chestplate", Count: 1b}, {Slot: 103b, id: "minecraft:chainmail_helmet", Count: 1b}]}] at @s if entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0},distance=..1.8] run data modify entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0}] AngerTime set value 0
These commands are supposed to make bees forget that they are angry at you when you wear full chainmail armor (an apiary suit). While it does make them "forget", but the bees keep reverting back to their angry state only to be set again causing quirky behaviors of a bee becoming angry, then passive, then angry, over and over again.
Environment
OSX Catalina
Graal 11
I've modified a 1.15 datapack to work for 1.16 by changing the commands to:
execute as @a[nbt={Inventory:[{Slot: 100b, id: "minecraft:chainmail_boots", Count: 1b}, {Slot: 101b, id: "minecraft:chainmail_leggings", Count: 1b}, {Slot: 102b, id: "minecraft:chainmail_chestplate", Count: 1b}, {Slot: 103b, id: "minecraft:chainmail_helmet", Count: 1b}]}] at @s if entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0},distance=..1.8] run data remove entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0}] AngryAt execute as @a[nbt={Inventory:[{Slot: 100b, id: "minecraft:chainmail_boots", Count: 1b}, {Slot: 101b, id: "minecraft:chainmail_leggings", Count: 1b}, {Slot: 102b, id: "minecraft:chainmail_chestplate", Count: 1b}, {Slot: 103b, id: "minecraft:chainmail_helmet", Count: 1b}]}] at @s if entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0},distance=..1.8] run data modify entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!{AngerTime:0}] AngerTime set value 0
These commands are supposed to make bees forget that they are angry at you when you wear full chainmail armor (an apiary suit). While it does make them "forget", but the bees keep reverting back to their angry state only to be set again causing quirky behaviors of a bee becoming angry, then passive, then angry, over and over again.
Edit: This seems to have been resolved by Prerelease 6. The bees retain their data now. You can close this bug report now.
relates to
is duplicated by
They also remain angry, even if you modify their anger values to 0 with /data
Possible dupe of MC-188091
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.
Can confirm this, I was playing on my survival world yesterday with Voodoo's Apiarist Suit Data Pack when this issue caught me off guard. All bees kept angry until they stung me. I thought the Data Pack wasn’t running correctly, most likely due to an incorrect load, but it kept happening until today I had to check the function and there wasn’t anything invalid with it. Looking at some issues that were introduced with the modifications to anger for neutral mobs like
MC-187679You can manually reproduce this without the need of the Data Pack by provoking a Bee in Survival (With snowballs from a certain distance is very easy) & then use this command
/data modify entity @e[type=minecraft:bee,limit=1,sort=nearest,nbt=!\{AngerTime:0}] AngerTime set value 0
It will say that the values for this entity were successfully modified but the Bee will remain angry.
Affects Pre-Release 5
Confirmed for 1.16 Pre-Release 6
Voodoo's Apiarist Data Pack is actually how I found out about the changes to bees. I had also modified my copy of the datapack to use the new commands only to find out this bug exists.