Guard Sleep Fix
A small companion fix for Villager Guards on Fabric 26.3.
Villager Guards makes its guards out of disguised vanilla mobs: archers and swordsmen are skeletons, spear guards are zombies, and crossbow guards are piglins. That causes two problems:
- 🛏️ You can’t sleep near guards. The game sees them as monsters and says “You may not rest now, there are monsters nearby.”
- 🐺 Wolves attack guards. Wild and tamed wolves both hunt skeletons, so they go after your archers and swordsmen.
This mod fixes both.
What it does
- Guards no longer stop you from sleeping.
- Wolves, wild or tamed, leave guards alone.
- Real monsters are unaffected. Zombies and skeletons still block sleep, and wolves still hunt real skeletons. The mod only changes behavior for mobs tagged as Villager Guards guards.
Details
- Tiny: about 4 KB with two small code hooks and no config.
- Works in singleplayer and on servers.
- If you attack a guard yourself, your tamed wolves won’t join in.
Requirements
- Minecraft 26.3
- Fabric Loader 0.15.0 or newer
- Villager Guards; the mod does nothing without it, but it won’t crash if it’s missing.
- No Fabric API needed.
Compatibility
Tested in a 150-mod Fabric pack that includes Lithium, Sodium, Distant Horizons and Alex’s Mobs. No other mod in that pack changes these two parts of the game.