Summon a bee in an enclosure so it can’t fly away.
Go into survival mode.
Run the following command: /data modify entity @n[type=bee] angry_at set from entity @s UUID
This should make the bee angry at you. it has no obvious effect.
This command does not set anger_end_time. Just in case that was the problem, also try the following:
Get your own UUID via /data get entity @s UUID
Run the command (replacing with your UUID): /data merge entity @n[type=bee] { angry_at: [I; 1408807480, -55032620, -1118136527, -535790252], anger_end_time: 10000}
This seems both angry_at and anger_end_time in the same command, but the bee will still not be angry. (If you break open the enclosure, it won’t attack you.)
Comments 3
OK, now I know what was missing: If I set the world to “Peaceful”, run the second command, of course nothing happens. BUT then I set it “Normal” and still nothing happens. I had done that in the world before running into the problem, but didn’t know it was connected.
I cannot reproduce this. The second command properly made the bee attack me when substituting my UUID.