Description
Protect your village with an unstoppable Town Guard defender.
Mod Wiki
Town Guard
Quickstart
-
In Creative mode, search for Town Guard Spawn Egg in the inventory.
-
Use the spawn egg on the ground near your village or another area you want to defend.
-
Let the Town Guard roam and watch for nearby hostile mobs. It automatically attacks monsters it can see.
-
You can also summon one with:
/summon com_town_guard_yih2ueiw:myvindicator
The Town Guard has no crafting recipe. It is obtained through natural spawning, the Creative inventory, or commands.
Overview
Town Guard adds a powerful, vindicator-style illager mob designed to fight hostile mobs around a village or settlement. It is a large melee fighter with 160 health and an 8-damage attack.
Town Guards are not tame pets and do not follow player commands. Once spawned, they patrol and engage nearby monsters automatically.
What It Adds
| Content | Description |
|---|---|
| Town Guard | A durable melee mob that attacks nearby monsters |
| Town Guard Spawn Egg | A Creative-mode spawn egg for placing Town Guards |
| Natural spawning | Town Guards can appear in surface areas of the Overworld |
How To Use
Deploying a Guard
Spawn the Town Guard inside or around your village. A fenced or walled area can help keep it close to the location you want protected, since it wanders when it has no target.
The Town Guard fights without needing equipment or commands from the player. It looks for hostile mobs, moves toward visible targets, and attacks them at close range.
Interacting With It
You can use the normal interact control on the Town Guard, but its main gameplay function is automatic combat. It has no documented inventory, upgrade system, or player-controlled stance.
You can also use a name tag on it. Naming it Johnny activates its Johnny-style targeting behavior.
Crafting And Obtaining
There is no crafting recipe for the Town Guard or its spawn egg.
Natural Spawning
Town Guards can naturally spawn under these conditions:
- In the Overworld
- On the surface
- At heights from Y=63 through Y=320
- In brightness levels from 0.5 to 1.0
- Between 16 and 64 blocks from the player
- In groups of one
They can appear in different Overworld biomes that support Overworld creature spawning.
Creative Mode And Commands
The Creative inventory contains Town Guard Spawn Egg. For command use, the entity identifier is:
com_town_guard_yih2ueiw:myvindicator
Abilities And Mechanics
Combat
- Health: 160
- Attack damage: 8
- Movement speed: 0.35
- Follow range: 64 blocks
- Uses melee attacks.
- Targets visible monsters other than Town Guards.
- Normally searches for targets within 16 blocks.
- Remembers a visible target for up to 40 seconds after losing sight of it.
- Becomes permanently aggressive while it has an active target, calming when the target escapes.
The Town Guard does not automatically select players or villagers as combat targets under its normal targeting rules.
Equipment
Town Guards are equipped with an iron axe. Their axe has a 25% chance to receive a random enchantment.
They can pick up nearby dropped items and can equip suitable items. They also recognize the illager banner used by patrols.
Movement
Town Guards can:
- Move through water.
- Float when necessary.
- Pass through doors.
- Wander when they have no target.
- Navigate around villages and other terrain.
They avoid Creakings within 8 blocks.
Raids And Patrols
The Town Guard is compatible with raid and illager patrol behavior. In raid-related situations, it can:
- Join a raid.
- Move toward a village.
- Act as an illager captain or patrol member.
- Follow a patrol captain.
- Break doors on Normal difficulty or higher when using its raid behavior.
A Town Guard spawned normally with its spawn egg is primarily a monster-hunting mob; raid-specific behavior applies when it is participating in a raid or patrol.
Weaknesses
Despite its high health, the Town Guard is not invulnerable. Lava damages it for 4 damage per tick, and it can still be defeated by other sources of damage.
Progression And Strategy
- Place a Town Guard near the entrance or perimeter of a village.
- Use walls or fencing to limit wandering and keep the guard near important buildings.
- Deploy several guards in separate areas when defending a large settlement.
- Keep clear sightlines around the village so the guard can detect approaching monsters.
- Avoid placing guards near lava or other environmental hazards.
- During raids, take advantage of the Town Guard’s village movement and melee strength, but remember that raid-state guards can interact with doors differently from ordinary spawned guards.
Drops
Drops are awarded when a player kills a Town Guard:
- 1–3 Iron Nuggets, with a possible additional Looting bonus
- 1–2 Emeralds at a base chance of 35%, with Looting affecting the chance and amount
- 1 Iron Ingot at a base chance of 10%
The iron ingot drop is produced as smelted iron. Town Guards also provide player-kill experience.
Recipes


How to install
Download the mod and follow the step-by-step installation guide.
This mod is licensed under the CreativeMode Mods License.