The Bug
If you kill a villager near other villagers they get angry and raise their prices greatly, but they don't get angry if you kill their iron golem even though they did before 1.14.
Steps to Reproduce
Generate a new world, locate a village, and wait a couple of minutes to allow the villagers to obtain a job.
Find the iron golem within the village and kill it.
Observe the villagers' prices of their trades and take note as to whether or not they increased them due to you killing their iron golem.
Observed Behavior
Villagers don't get angry when you kill the iron golem within their village.
Expected Behavior
Villagers would get angry when you kill the iron golem within their village.*
Linked issues
Attachments
Comments 8
Though it is basically impossible to know without looking at the wiki, villages before 1.14 had a "reputation score" system that changed when you traded with villagers, hurt villagers, and killed iron golems. When you killed an iron golem, you lost 5 "reputation points". If your reputation was low enough, iron golems were hostile instead of neutral. This old reputation system was basically useless and irrelevant because there were no iron golems in villages, however an important feature of it failed to pass on into the new reputation system.
Can confirm this in 1.18 Pre-release 6. Here are some extra details regarding this problem.
The Bug:
Villagers don't get angry when you kill the iron golem within their village.
This issue did not occur before 1.14.
Steps to Reproduce:
Generate a new world, locate a village, and wait a couple of minutes to allow the villagers to obtain a job.
Find the iron golem within the village and kill it.
Observe the villagers' prices of their trades and take note as to whether or not they increased them due to you killing their iron golem.
Observed Behavior:
Villagers don't get angry when you kill the iron golem within their village.
Expected Behavior:
Villagers would get angry when you kill the iron golem within their village.
Not a bug, there is just no gossip category for iron golems being attacked, so villagers will not adjust prices according to that.