Hero of the Village

| Sources | Defeating a raid | 
|---|---|
| Particle | 
 | 
| Type | Positive | 
{
    "title": "Hero of the Village",
    "rows": [
        {
            "field": "Defeating a (link to raid article, displayed as raid)",
            "label": "Sources"
        },
        {
            "field": "<span class=\"sprite-file\" style=\"height:18px;width:18px\">(link to File:EffectSprite particle-hero-of-the-village.png article, displayed as 18x18px|link=|alt=EffectSprite particle-hero-of-the-village.png: Sprite image for particle-hero-of-the-village in Minecraft|class=pixel-image|)</span> #44FF44 (bright green)<sup class=\"noprint nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Java Edition\">(link to Java Edition article, displayed as Java Edition)  only</span></i>]</sup><br>\nnone<sup class=\"noprint nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Bedrock Edition\">(link to Bedrock Edition article, displayed as Bedrock Edition)  only</span></i>]</sup>",
            "label": "Particle"
        },
        {
            "field": "Positive",
            "label": "Type"
        }
    ],
    "invimages": [],
    "images": [
        "Hero of the Village.png"
    ]
}
Hero of the Village is a status effect granted to the player upon defeating a raid.
Effect
The effect lasts 40 minutes. In Java Edition, players receive gifts and discounts from villager trades while under the effect. In Bedrock Edition, the player receives only discounts. The wandering trader's trades are not affected.
Animation

In Bedrock Edition, upon the effect being given a short animation of the effect icon appearing on the screen plays, similar to a totem of undying.
Price decrement
Level I Hero of the Village decreases the cost of the first item in a villager trade by 30%; each additional level decreases the price by an additional 1⁄16 (6.25%). In Survival, the maximum level is V or I, giving discounts of 55% and 30%, respectively. Nevertheless, one can use commands to give higher levels of the effect. Hero of the Village XII gives a discount of 98.75%, decreasing all prices to 1. No matter how large the discount is, the final item count in the trade is always at least one, never zero. In other cases, the decrement is the discount ratio multiplied by the base price rounded down or rounded up if the decrement is less than 1.
Example: Level III would give a 42.5% discount. For 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 Discounted price = Base price - max[1, floor(Base price × (0.0625 × (Level - 1) + 0.3))].
This effect stacks with reputation-based discounts, including the curing discount. It should be noted that the base price of the trade used in this calculation is the cost before any such reputation-based discounts are applied. So, if a trade normally costs 14 emeralds, but is discounted to 9 emeralds due to the curing discount, then Hero of the Village III will still give a 5-emerald discount for a final price of 4 emeralds, as it will use 14 instead of 9 for the base price.
Hero of the Village is a status effect and can be removed through all conventional methods, such as drinking milk, using a Totem of Undying, or dying.
Gifts
Upon obtaining the effect, villagers randomly throw items from a certain pool at the player as rewards, listed below. In order for a player to have gifts thrown to them, they must have Hero of the Village, the villager must be able to see them, and they must be within 5 blocks of the villager. After throwing a gift, a villager enters a cooldown lasting between 30 seconds and 5min 30 sec. Villagers give gifts only while idle, working, or meeting at the town center (bell). They do not give gifts during the night when they should be sleeping.
| Type of villager | Gift pool | 
|---|---|
| Baby | |
| Armorer | |
| Butcher | |
| Cartographer | |
| Cleric | |
| Farmer | |
| Fisherman | |
| Fletcher | |
| Leatherworker | |
| Librarian | |
| Mason | |
| Shepherd | |
| Toolsmith | |
| Weaponsmith | |
| Nitwit, Unemployed | 
If /gamerule mobGriefing is set to true, villagers might pick up seeds and bread that were thrown as gifts if a player doesn't get to them first.
Causes
| Cause | Potency | Length | Notes | 
|---|---|---|---|
| All illagers in the final wave of a raid are killed. | I–V  | 40:00 | The player must have killed at least one raider. The level is the same as the level of Bad Omen the raid was started with. | 
| I  | 40:00 | The player must have killed at least one raider. | 
Even using the /effect command can give the player the Hero of the Village effect and cause the villagers to decrease prices, give gifts, and increase the player's popularity.
Immune mobs
- Withers and ender dragons are immune to Hero of the village.
- All mobs are unaffected by Hero of the village.
Data values
ID
| Name | Identifier | Numeric ID | Translation key | 
|---|---|---|---|
|  Hero of the Village | hero_of_the_village | 32 | effect | 
| Name | Identifier | Numeric ID | Translation key | 
|---|---|---|---|
|  Hero of the Village | village_hero | 29 | effect | 
Achievements
| Icon | Achievement | In-game description | Actual requirements (if different) | Gamerscore earned | Trophy type (PS) | ||
|---|---|---|---|---|---|---|---|
| PS4 | Other | ||||||
|  |  | Buy Low, Sell High | Trade for the best possible price. | Buy something for 1 emerald, or when the effect is applied. | 50 | Gold | |
Advancements
| Icon | Advancement | In-game description | Actual requirements (if different) | 
|---|---|---|---|
|   | Hero of the Village | Successfully defend a village from a raid | Kill at least one raid mob during a raid and wait until it ends in victory. This is a hidden advancement, meaning that it can be viewed by the player only after completing it, regardless of if its child advancement(s), if any, have been completed. | 
|   | How Did We Get Here? | Have every effect applied at the same time | Have all of these 33 status effects applied to the player at the same time: 
 The source of the effects is irrelevant for the purposes of this advancement. Other status effects may be applied to the player, but are ignored for this advancement. | 
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.14 | 19w13a |  Added Hero of the Village. | |||||
| 1.19.3 | 22w46a | The inventory now correctly shows the remaining time on the Hero of the Village effect, instead of **:**.[1] | |||||
| Bedrock Edition | |||||||
| 1.11.0 Experiment | beta 1.11.0.1 |  Added Hero of the Village. Currently has no effect. | |||||
| beta 1.11.0.3 |  Changed Hero of the Village icon. | ||||||
| beta 1.11.0.4 | Hero of the Village now grants a villager trading discount. | ||||||
| Hero of the Village can be obtained by defeating a raid. | |||||||
| beta 1.11.0.7 | An animation now plays on-screen when a player gets Hero of the Village. | ||||||
| 1.11.0 | release | Hero of the Village is now available outside of Experimental Gameplay. | |||||
| PlayStation 4 Edition | |||||||
| 1.91 |  Added Hero of the Village. | ||||||
Issues
Issues relating to "Hero of the Village" are maintained on the bug tracker. Issues should be reported and viewed there.
References
| Movement | 
 | ||
|---|---|---|---|
| Health | 
 | ||
| Combat | |||
| Hunger | |||
| Breaking | |||
| Spawns | |||
| Underwater | |||
| Visibility | 
 | ||
| Ominous Events | |||
| Unused | 
 | ||
| Joke | |||


























































































