Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

Introduction:

This datapack aims to add Village Guards in vanilla minecraft and it supports minecraft versions 1.16 to 1.20.


Village Guard Stats:

  1. HP ♥️: 20 (10 hearts)
  2. AP 🛡️: 10 (5 armors)
  3. Attack Damage ⚔️: 12-16 (6-8 hearts)
  4. Ranged Attack Damage 🏹: 8-10 (4-5 hearts)
  5. Floats in water hence does not drown 🏊
  6. Hate 😡: All zombie types, all illagers
  7. Heals overtime ➕
  8. Spawns : When villagers create their own iron golem
  9. Spawn count : 6
  10. Weapons 🗡️🏹:
    • Iron Sword(60% chance)
    • Iron Axe(20% chance)
    • Bow(20% chance)
  11. Loot Drop 💰: Current Weapon
  12. When on fire 🔥: Instantly puts out fire.
  13. When Shield Equipped 🛡️: Gains Resistance II effect.


Types of Players according to Village Guard:

  1. 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.
  2. Normal Players 😀: This type is assigned to every player by default.
  3. Heroes of the Village 👮‍♂️: These are the players who have "Hero of the Village" effect.
  4. 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:

  1. Bad Players 😈: Guards and Golems attack them on sight and forgive after one of them successfully kill that bad player.
  2. Normal Players 😀: Neutral. Passive to the players until provoked.
  3. 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.
  4. 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?

  1. If you are a Hero of the Village OR the Protected Player, you come under protected entities.
  2. Guards and Golems will not care about anybody you fight by yourself. They will stay neutral.
  3. Once a mob/player targets you or tries fighting back to you, they get angry on that mob/player and starts attacking them.


Admin Commands:

  • Give Village Guard Spawn Egg:
    /function give:vg/spawn_egg/village_guard
  • Summon Village Guard:
    /function summon:vg/village_guard
  • Uninstall the datapack:
    /function uninstall:village-guards-vX.X.zip


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.
  • You can also protect your house/trading hall by adding these Guards.


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.


Archer Village Guard exclusive features:

  1. Sprints faster than normal ones.
  2. Can dodge 90% of projectiles.
  3. Always wins to every archer mob.


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:

  1. PlanetMinecraft Page
  2. Modrinth Page
  3. Discord Server

License:

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Conditions that apply:

  1. You must give appropriate credit to the creator if you publicly showcase this work.
  2. You may not use this work for commercial/business purposes. (this does not include having the datapack installed in your server)
  3. 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.


External resources



Project members

SAMEER_99

Main Developer

MCSilver64

Inspirer


Technical information

Project ID