Updated:
Hero of the Village: effect ID and commands
The effect ID for Hero of the Village is minecraft:hero_of_the_village. Gives discounts on villager trades after winning a raid. It was added in Java 1.14.
Basic data
| Name | Hero of the Village |
|---|---|
| ID (Java Edition) | minecraft:hero_of_the_village |
| Type | Beneficial effect |
| Java versions | Java 1.14 and later |
| Bedrock 26.52 | This ID is not accepted as is |
Commands you can copy
Java Edition
Apply for 30 seconds
/effect give @p minecraft:hero_of_the_village 30 0Apply level II for 60 seconds
/effect give @p minecraft:hero_of_the_village 60 1Apply with particles hidden
/effect give @p minecraft:hero_of_the_village 60 0 trueApply with no time limit (Java 1.19.4+)
/effect give @p minecraft:hero_of_the_village infinite 0 trueRemove only this effect
/effect clear @p minecraft:hero_of_the_villageBedrock Edition
Bedrock does not accept this ID. Check the Bedrock form with the Java / Bedrock converter.
Version notes
It was added in Java 1.14. Older versions report that the ID is unknown.
Java Edition writes /effect give; Bedrock writes /effect without give. infinite in place of seconds works in Java 1.19.4 and later.
Questions
What is the ID for Hero of the Village?
It is minecraft:hero_of_the_village. In commands you can also write hero_of_the_village without minecraft:.
How do I set the level?
The number after the seconds is the strength: 0 is level I, 1 is level II, up to 255.
How do I hide the particles?
Add true at the end of the command to hide the particles.