Introduction:

This datapack aims to add Village Guards in vanilla minecraft and it supports minecraft versions 1.16.2 to 1.21.11.


Village Guard Stats:

  1. HP โ™ฅ๏ธ: 20 (10 hearts)
  2. AP ๐Ÿ›ก๏ธ: 6 (3 armors)
  3. Attack Damage โš”๏ธ: 11 (5.5 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, and creepers
  7. Heals overtime โž•
  8. Spawns : When villagers create their own iron golem
  9. Spawn count : 6
  10. Max Spawn ๐Ÿ”ข: 10 per village (This value is changeable. See Admin Commands section.)
  11. Weapons โš”๏ธ:
  12. Loot Drop ๐Ÿ’ฐ: Current Weapon
  13. Builds light pole ๐Ÿ’ก near villages. This feature can be disabled. See Admin Commands section.
  14. When on fire ๐Ÿ”ฅ: Can put out fire faster.


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:-
  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. Guards and Golems will protect these players.
  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.


Extra Features:


Admin Commands:


Pros:


Cons:


Known Bugs:


My Socials:

  1. PlanetMinecraft Page
  2. Modrinth Page
  3. Discord Server
  4. Paypal Account

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.