Minecraft Data Packs / Mob

Village Guards

  • check_circle Functions
  • check_circle Loot Tables
  • check_circle Predicates
  • 29,884 views, 14 today
  • 4,670 downloads, 1 today
  • 131
  • 112
  • 156
SAMEER_99's Avatar SAMEER_99
Level 51 : Grandmaster Programmer
76

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๏ปฟ

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.
CreditSAMEER_99, MC_Silver
CompatibilityMinecraft 1.16
toMinecraft 1.20
Tags

39 Update Logs

Update #8.3 : by SAMEER_99 01/18/2024 5:32:55 amJan 18th

- From now on, "Datapack loaded" message will be displayed only once, to all the players.
- Fixed bug where if a player(in creative mode) angers Village Guard, it used to get angry. Creative mode players are now always whitelisted.
- Village Guards will now pick up dropped weapons. And only weapons, not armor. Because picking up armor will spoil their original look.
- Village Guards with Shield in hand have Resistance 2 effect.
- Fixed bug where mobs automatically despawn in the nether when they are angry at iron golem.
- Updated datapack according to wiki.smithed.dev standards.
- Add a way to completely uninstall the datapack removing all datapack features.
- Updated Village Guard pack.png image.
- Village Guards will now swim towards current target in a better way
- Added command to clean uninstall the datapack (check description).
- Added a few user friendly messages which will tell players what to do and what not to do.
- Fixed a bug. Creeper will no longer drop music discs upon killed by Village Guards.
LOAD MORE LOGS

Create an account or sign in to comment.

2
01/19/2024 3:52 amhistory
Level 1 : New Miner
User4980699G
User4980699G's Avatar
What luck this was updated just 22 hours ago!
1
01/19/2024 5:07 am
Level 51 : Grandmaster Programmer
SAMEER_99
SAMEER_99's Avatar
Yes, I am currently free from my works right now. So I search for every bug in my datapacks and fix them.
2
01/18/2024 11:23 am
Level 34 : Artisan Soldier
dancing reaper
dancing reaper's Avatar
Nice pack!
1
01/18/2024 9:30 pm
Level 51 : Grandmaster Programmer
SAMEER_99
SAMEER_99's Avatar
Thank you ๐Ÿ™
2
12/25/2023 8:20 pm
Level 3 : Apprentice Miner
Juleea
Juleea's Avatar
thank you
1
12/26/2023 2:43 am
Level 51 : Grandmaster Programmer
SAMEER_99
SAMEER_99's Avatar
Be careful, the guards can attack back too.
2
12/15/2023 3:24 amhistory
Level 1 : New Miner
oLightning
oLightning's Avatar
what about the spawn eggs of them do they have spawn eggs? if not ig its a suggestion you can add em!
1
12/17/2023 2:34 pm
Level 51 : Grandmaster Programmer
SAMEER_99
SAMEER_99's Avatar
We do have spawn eggs for Village Guards. Don't worry.
2
11/08/2023 8:47 amhistory
Level 3 : Apprentice Ranger
TighexIV
TighexIV's Avatar
I would like it that u add (if possible) guard brutes that spawn if to many iron golems,villager or guards die (my Suggestion) make them imune too fire

Also this is one of my favorite datapacks
2
11/09/2023 10:55 amhistory
Level 51 : Grandmaster Programmer
SAMEER_99
SAMEER_99's Avatar
your idea is amazing but the concept "Brutal Guard" already existed before and was removed because of the following reasons:

1. There were too many unneeded features in this datapack and Brutal Guard was one of them.

2. The player had to work really hard for getting a Brutal Guard and the downside was, it wouldn't follow you at all even when you worked so hard to get it.

3. The villages were too overpowered.

4. It was laggy.

I have planned to keep the datapack, same way as it is right now. The game is balanced enough.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome