Description
Guard Dogs
Sit your dog, and it guards the spot.
Tamed wolves bark when monsters come near. Sit one by your door, your farm or your base, and it watches that spot. When a monster gets close, the dog gets up and fights it. It never attacks creepers. When the area is clear, it walks back to where you sat it and sits down again.
Features
- Barking. Any tamed wolf, sitting or standing, barks at the nearest monster within 16 blocks that it can see. It also barks at monsters within 5 blocks it can only hear or smell, like one on the other side of a wall. It turns its head to look at the threat, and barks at most once every 4 to 5 seconds. Each wolf uses its own variant's bark. Pups bark higher.
- Creeper warning. Dogs bark at creepers so you know one is there, but they never attack them.
- Guard post. The block where you sit your dog becomes its post. When a monster it can see comes within 12 blocks of the post, the dog stands up and fights.
- Leash. A guard drops any target more than 24 blocks from its post, so it won't chase a skeleton across the map. If it chases one mob for 15 seconds without landing a bite (say the mob is on a ledge), it gives up and leaves that mob alone for 30 seconds.
- Goes home and sits. When nothing is left to fight, the dog walks back to its post and sits again. While it's on duty, it won't run or teleport off to you.
- Safe fallback. If the dog can't get home within 30 seconds, it teleports onto its post if that spot is loaded and safe to stand on. If the post has been built over, it sits where it is, and that spot becomes its new post.
- Hurt while sitting. In vanilla, a sitting wolf stands up when it's hurt. A guard fights back if the attacker is something it may fight, then goes back and sits down.
- Sensible targets. Guards leave alone:
- creepers and wardens
- ghasts
- tamed pets
- players
- endermen and zombified piglins, unless they are angry at the dog or its owner
- Works with every wolf variant, and with wolf armor.
How to use
- Tame a wolf as usual.
- Right-click it to sit it. That block is now its guard post.
- Right-click again to stand it up. The post is cleared, and it follows you like a normal wolf.
- To move a guard, stand it up, walk it somewhere else, and sit it there.
Wolves that were already sitting when you install the mod take the spot where they're sitting as their post. Putting a lead on a dog clears its post.
Config
Settings are in config/guarddogs.json, which is created on first launch. Values outside the allowed range are clamped.
| Setting | Default | What it does |
|---|---|---|
guardModeEnabled |
true |
Sitting wolves guard their post. Set to false for barking only. |
barkEnabled |
true |
Tamed wolves bark at monsters. |
barkRadius |
16.0 |
Bark range in blocks (2 to 48). |
barkCooldownTicks |
80 |
Minimum ticks between barks per wolf, plus up to 20 random (10 to 1200). 20 ticks = 1 second. |
barkVolume |
1.5 |
Bark volume (0 to 4). Vanilla wolf sounds are 0.4. |
guardRadius |
12.0 |
Monsters this close to the post wake the guard (2 to 32). |
leashRadius |
24.0 |
Targets farther than this from the post are dropped (4 to 64, never smaller than guardRadius). |
returnTimeoutTicks |
600 |
Ticks allowed for the walk home before the dog gives up (100 to 12000). |
teleportHomeWhenStuck |
true |
When it gives up: true teleports it onto the post if that spot is safe, false makes it sit where it is. |
giveUpChaseTicks |
300 |
Ticks chasing one target without a bite before it gives up (60 to 6000). |
neverAttack |
["minecraft:creeper", "minecraft:warden"] |
Entity IDs it barks at but never attacks. Creepers are always on the list. |
Compatibility
- Minecraft 26.3, Fabric. Needs Fabric Loader 0.20.1 or newer, and Java 25.
- No Fabric API needed.
- Server-side only. Install it on the server, or on the computer hosting the LAN world. Players who join don't need it, and it works in singleplayer.
- It only changes how tamed wolves behave and adds no blocks, items or entities. It uses vanilla sounds, so it can be added to an existing world. Guard posts are saved with each wolf.
Screenshots
The gallery images are real Minecraft 26.3 game captures, taken with Guard Dogs running in an automated test world with no shader and the HUD hidden. To keep the action in frame, the husk in the fight shots had its AI turned off and was given Resistance.
License and credits
Made by MrSleepin. Released under the MIT License.


