-
Bug
-
Resolution: Won't Fix
-
None
-
1.16 Pre-release 2, 1.16.2 Pre-release 3
-
None
-
OSX Catalina
Graal 11
-
Community Consensus
-
Commands, Mob behaviour
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.