Datapack Codex

Hero of the Village

Minecraft Wiki article. Categories: Java_Edition_specific_information, Effects, Villager_mechanics

📌 Mirrored from Minecraft Wiki

This article is reproduced from Hero of the Village on the Minecraft Wiki. Mirrored from revision 3718754. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

Hero of the Village
Hero of the Village.png: Infobox image for Minecraft effect 'Hero of the Village'

Hero of the Village is a player-exclusive status effect obtained by defeating a raid. The effect lasts 40 minutes, during which players receive discounts from villager trades, and in Java Edition, gifts from villagers.

Effect

In Java Edition the effect's level will be that of the defeated raid; in Bedrock Edition there is only one level.

Players receive discounts from all villagers, including ones from villages other than the one the raid was defeated in. The wandering trader's trades are only affected in Bedrock Edition.

Hero of the Village is a status effect and can be removed through all conventional methods, such as drinking milk or dying.

Animation

The Bedrock Edition animation for the Hero of the Village effect activating.

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

Hero of the Village reduces the price of all villagers by 30% and 6.25% per additional level, both being of to the initial price, giving 55% at level V. This price reduction is rounded down to whole items, but is at least 1 unless the price is already 1.

If nothing besides Hero of the Village is affecting the price, the formula for it can be written as:

Final Price=min⁡(max⁡(p−max⁡(1,⌊p⋅(0.3+0.0625⋅(h−1))⌋),1),Stack Size)

where p is the initial price and h is the Hero of the Village level.

For example, level III would give a 42.5% discount. For a trade costing 14 emeralds, the discount would be 5 emeralds, for a final price of 9.

Gifts

This feature is exclusive to Java Edition.
 

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
Unemployed
Nitwit

If /gamerule mob_griefing is set to true, villagers might pick up seeds and bread that were thrown as gifts if a player does not get to them first.

Causes

Cause Potency Length Notes
All illagers in the final wave of a raid are killed. I–V ‌[JE only] 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 ‌[BE only] 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

Data values

ID

Java Edition:

NameIdentifier Translation key
EffectSprite hero-of-the-village.png: Sprite image for hero-of-the-village in Minecraft Hero of the Villagehero_of_the_village effect.minecraft.hero_of_the_village

Bedrock Edition:

NameIdentifierNumeric ID Translation key
EffectSprite hero-of-the-village.png: Sprite image for hero-of-the-village in Minecraft Hero of the Villagevillage_hero29 effect.villageHero

Achievements

IconAchievementIn-game descriptionActual requirements (if different)Gamerscore earnedTrophy type (PS)
PS4Other
Buy Low, Sell HighTrade for the best possible price.Buy something for 1 emerald, or when the Hero of the Village effect is applied.50Gold

Advancements

IconAdvancementIn-game descriptionActual requirements (if different)
How Did We Get Here?Have every effect applied 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.

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.
Hero of the VillageSuccessfully defend a village from a raidKill 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.

History

Java Edition

Java Edition
1.1419w13a Added Hero of the Village.
1.19.322w46aThe inventory now correctly shows the remaining time on the Hero of the Village effect, instead of **:**.[1]
1.20.223w32aThe game no longer uses numeric values when storing mob effects to world. Prior to the removal of numeric IDs, this effect's numeral ID was 32.

Bedrock Edition

Bedrock Edition
1.11.0
Experiment
Experimental Gameplay
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.4Hero of the Village now grants a villager trading discount.
Hero of the Village can be obtained by defeating a raid.
beta 1.11.0.7An animation now plays on-screen when a player gets Hero of the Village.
1.11.0releaseHero of the Village is now available outside of Experimental Gameplay.

Legacy Console Edition

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

  1. ↑ MC-121865

Sources