Villager Guards

Villager Guards

Guards to defend villagers!

by
69.1K Downloads
datapackfabricforgeneoforgequiltadventuregame-mechanicsmobs
Rent Server with this Mod

Screenshots

Background
With Totem
Archer

About this Mod

Villager Guards

Discord
Modrinth
License
Donate
Donate


bg


📖 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

AGPL-3.0-or-later


👾 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

v1.1.7release
MC 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2fabric, forge, neoforge, quilt
October 25, 2025
v1.1.7release
MC 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2datapack
October 25, 2025
v1.1.5release
MC 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10fabric, forge, neoforge, quilt
October 24, 2025
v1.1.5release
MC 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10datapack
October 24, 2025
v1.1.5release
MC 1.21.2, 1.21.3, 1.21.4fabric, forge, neoforge, quilt
October 24, 2025

How to Install Villager Guards on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set datapack Loader

In the panel under "Egg", select the datapack loader and matching Minecraft version (26.1.2).

3

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

datapackfabricforgeneoforgequilt

Minecraft Versions

26.1.2, 26.1.1, 26.1 (+12 more)

Server-side

Required

Recommended 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.

Rent Modded Server

Install Villager Guards with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Affero General Public License v3.0 or later
Server-side
Required

Supported Versions

26.1.226.1.126.11.21.111.21.101.21.91.21.81.21.71.21.61.21.5+5 more