Compatibility
Minecraft: Java Edition
1.21.x
1.20.x
1.19.x
1.18.x
1.17.x
1.16.2–1.16.5
Platforms
Data Pack
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Details
Introduction:
This datapack aims to add Village Guards in vanilla minecraft and it supports minecraft versions 1.16.2 to 1.21.3.
Village Guard Stats:
- HP ♥️: 20 (10 hearts)
- AP 🛡️: 6 (3 armors)
- Attack Damage ⚔️: 11 (5.5 hearts)
- Ranged Attack Damage 🏹: 8-10 (4-5 hearts)
- Floats in water hence does not drown 🏊
- Hate 😡: All zombie types, all illagers, and creepers
- Heals overtime ➕
- Spawns : When villagers create their own iron golem
- Spawn count : 6
- Weapons ⚔️:
- Iron Sword(60% chance)
- Iron Axe(20% chance)
- Bow(20% chance)
- Loot Drop 💰: Current Weapon
- When on fire 🔥: Can put out fire faster.
- Maximum Amount 🔢: 10 per village by default
Types of Players according to Village Guard:
- Bad Players 😈: These type of players are the players who have provoked the Village Guards. Provoking Village Guards is done in following ways:-
- Kill one of the protected entity.
- Hit a protected entity 3 times.
- Normal Players 😀: This type is assigned to every player by default.
- Heroes of the Village 👮♂️: These are the players who have "Hero of the Village" effect.
- Protected Players 👨💼: Players, when they lose their "Hero of the Village" effect still remain protected by Guards and Golems.
Village Guard's Behaviour towards every type of player:
- Bad Players 😈: Guards and Golems attack them on sight and forgive after one of them successfully kill that bad player.
- Normal Players 😀: Neutral. Passive to the players until provoked.
- Heroes of the Village 👮♂️: These players count as protected entities. With this effect, you can do whatever you want to do with anybody, guards and golems won't fight back. Guards and Golems are always passive until you lose the "Hero of the Village" effect. After you lose the effect, you still remain a protected entity.
- Protected Players 👨💼: These players also count as protected entities. Guards and Golems are passive until a protected entity has been killed by this player.
How does protecting an entity works?
- If you are a Hero of the Village OR the Protected Player, you come under protected entities.
- Guards and Golems will not care about anybody you fight by yourself. They will stay neutral.
- Once a mob/player targets you or tries fighting back to you, they get angry on that mob/player and starts attacking them.
Extra Features:
- You can give following items to Village Guard and each item has a function:
- Any Weapon which is better than the one it is holding.
- Shield 🛡️: Absorbs 70% of damage dealt to Guard from anything.
- Totem of Undying 🗿: Gives an extra life to Guard.
- Any Tipped Arrow (Bow Guard only) 🎯: Gives the Guard unlimited Tipped Arrow.
- Spectral Arrow (Bow Guard only)🎯: Gives the Guard unlimited Spectral Arrow.
- Iron Axe (Axe Guard only)🪓: Gives the Guard the Double Axe Power = DOUBLE DAMAGE.
- Village Guard will not attack a Zombie Villager unless and until Zombie Villagers are 3 blocks closer to protected entity and is about to attack.
Admin Commands:
/function give:vg/spawn_egg/village_guard
Obtain Village Guard Spawn Egg/function summon:vg/village_guard
Summons Village Guard/function toggles:village_guards
Here you can toggle datapack specific features if you want. They are:- Maximum Village Guards : Set the maximum amount(limit) of Village Guards that are allowed to naturally spawn in a 256*256 blocks area. (Default = 10)
- Tutorial Messages : When Enabled, tutorial messages will appear.
- Speed : Controls the Speed of Village Guard.
- Uninstall the datapack:
/function uninstall:village_guards
Pros:
- Iron Golem is no longer lonely now.
- Villages are more safe from illager raids and zombie hordes.
- The effect Hero of the Village has REAL use now.
Cons:
- Its not easy to get your first iron ingots if you get those by killing the iron golem. You will be chased by a horde of village guards.
Known Bugs:
- You cannot sleep in the Village because of Village Guard unfortunately being a skeleton.
Fix:- You can build up 10 blocks and sleep peacefully. If you have a solution to this bug via datapack programs, please recommend me in comments section of my datapack page, I am always thankful to you. - Village Guard will convert into stray mob when it freezes inside the powder snow block.
Fix:- It will now climb up automatically whenever it starts freezing.
My Socials:
License:
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Conditions that apply:
- You must give appropriate credit to the creator if you publicly showcase this work.
- You may not use this work for commercial/business purposes. (this does not include having the datapack installed in your server)
- You may modify this work, but may not distribute the modified work.
Installation:
Open your .minecraft directory. Put the datapack into the saves/world_name/datapacks directory.