Villagers shooting fireworks after a raid can damage an iron golem, causing the iron golem to attack the villager.
Likely unintended behavior.
Previous reports marked as resolved (such as MC-195326), issue still occurs.
Environment
Windows 11 64-bit
11th Gen Intel(R) Core(TM) i7-11700 @ 2.5GHz
16.0 GB
WDC PC SN530 SDBPNPZ-1T00-1002
NVIDIA GeForce RTX 3060
Java Version 8 Update 411 build 1.8.0_411-b09
Duplicate of MC-213470. Awaiting a moderator to mark it so.
For now, don't let iron golems near those bottle rockets XD