
Villager Guards
Guards to defend villagers!
Screenshots



About this Mod
Villager Guards

📖 Description
Now guards will appear in the villages, there are two types, archers and swordsmen, they can pick up weapons, armors and totems!
You can turn an fletcher villager into an archer by dropping a bow at him
and turn a weaponsmith villager into a swordman by dropping a iron sword at him.
⚠️ Warning
Is a datapack, what it does is to convert randomly villagers to guards, being a datapack, if you install this mod in a world already created, some of your villagers may become guards and lose their trades, be careful.
And if you uninstall the mod your villagers will not return and the guards will still exist but will not function.
⌨️ Commands
Config:
/function villager_guards:config
Prevent villager convert into a guard using villager_guards.natural_spawn.procced tag:
/tag <villager> add villager_guards.natural_spawn.procced
Prevent guards attack entity using villager_guards.target.bypass tag:
/tag <entity> add villager_guards.target.bypass
Summon:
/function villager_guards:guard/<type>/summon
🪪 License
👾 Bugs/Issues
Please report any problem/bug/issues in the Discord Server.
💌 Donate
🎁 Server Hosting
Creating your own server can be a very lengthy, tedious and costly process.
Interested? Then we've got a deal for you!
!
Available Versions
How to Install Villager Guards on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set datapack Loader
In the panel under "Egg", select the datapack loader and matching Minecraft version (26.1.2).
Install Mod
Open the mod browser in the dashboard and search for "Villager Guards". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1.2, 26.1.1, 26.1 (+12 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Villager Guards server crashes on startup – what to do?
Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.
Is Villager Guards compatible with datapack and fabric and forge and neoforge and quilt?
Villager Guards officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 26.1.2, 26.1.1, 26.1. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Villager Guards – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Villager Guards consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Villager Guards with just one click on your server.