Minecraft wiki entry for Villager, associated text: In Java Edition, once the player gains the Hero of the Village status after defeating a raid, villagers give them a discount for their trades and throw them gifts related to their profession. For a list of items that they can gift, see Hero of the Village § Gifts.