Minecraft wiki entry for Villager, associated text: In Java Edition, villagers increase their prices of trades if a player's popularity is low, (e.g. from damaging villagers), and decrease it if their popularity is high (e.g. from trading with multiple villagers). Curing a zombie villager in Bedrock Edition or defeating a raid in Java Edition also increases the player's popularity by 10.