Hero of the Village

Hero of the Village is a status effect granted upon defeating a raid.

Effect
Players will receive gifts and discounts from villager trades while under the effect. $$, the effect is active only if the player is in the village in which the raid has been defeated.

Animation
In Bedrock Edition, upon the effect being given a short animation of the effect icon appearing on screen will play, similar to a totem of undying.

Price decrement
Level I Hero of the Village will decrease the cost of the first item in a trade by 30%; each additional level will decrease the price by an additional $1/16$ (6.25%), up to the 55% discount with a level V Hero of the Village. No matter how large the discount is, the final item count in the trade will always be at least one; in other words, it won't be free. In other cases, the decrement is the discount ratio multiplied by the original count rounded down, or rounded up if the decrement is less than 1.

Example: Level III would give a 42.5% discount. For a trade with 14 emeralds as the cost, the discount would be 5 emeralds (rounded down from 5.95 emeralds), for a final price of 9 emeralds.

The formula can be written as.

Gifts
Upon obtaining the effect, villagers will randomly throw items from a certain pool at the player as rewards, a list of them is below:

History
村庄英雄