Minecraft wiki entry for Things_not_to_do, associated text: A player's popularity in a village determines the prices that villagers offer when trading. The lower the player's popularity, the higher the price. Attacking (or even accidentally hitting) a villager causes the player to lose 1 popularity (see Village). Killing one results in a loss of 2 popularity, which is not worth anything to the player as villagers drop nothing. Attacking a baby villager results in the player losing 3 popularity and killing a baby villager results in the player losing 5 popularity. In bedrock edition, if the player kills the village's iron golem, the player loses 10 popularity.