HearthGuard
When the sun sets without shelter you no longer need fear hostile mobs as you can light a campfire which causes them to panic and flee in fear.

![]()
Works with CinderStride Upgrade campfires into Hearthfires that increase the fear range.
Vanilla Friendly
- Mobs visibly show panic, fear, and flight
- Behavior is modified rather than artificial rules
- Works with vanilla campfire
Features
- Works with modded mobs too!
- Mob behavior is modified to fear lit campfires
- Mobs freeze, jump in panic, then flee
- Loot may be dropped when they panic
- Requires actual line of sight
Behavior in action
Mobs react realistically and naturally rather than being pushed
Startled

Jumping

Fleeing

Configuration
Config file:
config/hearthguard/config.json
UI via Mod Menu (Fabric) and Cloth Config.
Settings
- Range: Campfire detection distance in blocks
- Flee Fast Speed: Speed when close to the fire
- Flee Slow Speed: Speed when farther away
- Mode:
WhitelistorBlacklist - Mobs: Affected entity IDs
- Drop Item Chance: % chance (0–100) to drop one item on first fear only
Notes
Drop Item Chance = 0disables fear drops- Each mob can only drop once (persisted across saves)
- Only applies in the Overworld
Known Issues
- Datapack defined mobs that reuse vanilla entity IDs cannot be selected independently
Changelog
1.1.0
- Added integration with CinderStride Hearthfires now increase mob fear radius by 50%.
1.0.3
- Added Command system for runtime configuration
- Support for Minecraft v26.1.2
- Fixed: Config changes now correctly apply to previously spawned mobs
1.0.2
- Support for Minecraft v26.1.1
License: MIT
Source: https://github.com/kingnhcomcast/hearthguard
Permissions: You are welcome to use this mod in your modpack. If you do, feel free to leave a comment and let me know.
If you want support for other minecraft versions or feature requests, leave a comment!
Enjoy!
Zombies see the fire, freeze, panic, then flee in fear providing you a safe area to rest.
This screenshot shows a hostile mob detecting a nearby lit campfire. With HearthGuard installed, mobs become aware of your campfires and start reacting, adding tension and realism to your survival experience.
Here, a mob reacts to a campfire in panic, demonstrating HearthGuard’s AI behavior. Mobs jump back and hesitate before fleeing, creating dynamic interactions around your campsite. There is a chance they will drop some loot as they panic and flee.
This image captures a hostile mob fleeing the area after detecting a lit campfire. HearthGuard adds immersive survival mechanics by making mobs fear and avoid fire, keeping your base safer.
| Version | Minecraft | Loader | Download |
|---|---|---|---|
|
HearthGuard - Mobs Fear Campfires 1.1.1 26.1.2-1.1.1 |
26.1, 26.1.1, 26.1.2
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.1 26.1.2-1.1.1 |
26.1, 26.1.1, 26.1.2
|
fabric
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.1 1.21.11-1.1.1 |
1.21.11
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.1 1.21.11-1.1.1 |
1.21.11
|
fabric
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.1 1.21.1-1.1.1 |
1.21.1
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.1 1.21.1-1.1.1 |
1.21.1
|
fabric
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.0 26.1.2-1.1.0 |
26.1, 26.1.1, 26.1.2
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.0 26.1.2-1.1.0 |
26.1, 26.1.1, 26.1.2
|
fabric
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.0 1.21.11-1.1.0 |
1.21.11
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.0 1.21.11-1.1.0 |
1.21.11
|
fabric
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.0 1.21.1-1.1.0 |
1.21.1
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.1.0 1.21.1-1.1.0 |
1.21.1
|
fabric
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.0.3 1.21.1-1.0.3 |
1.21.1
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.0.3 1.21.1-1.0.3 |
1.21.1
|
fabric
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.0.3 1.21.11-1.0.3 |
1.21.11
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.0.3 1.21.11-1.0.3 |
1.21.11
|
fabric
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.0.3 26.1.2-1.0.3 |
26.1, 26.1.1, 26.1.2
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.0.3 26.1.2-1.0.3 |
26.1, 26.1.1, 26.1.2
|
fabric
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.0.2 (NeoForge) 26.1.1-1.0.2 |
26.1, 26.1.1
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.0.2 (Fabric) 26.1.1-1.0.2 |
26.1, 26.1.1
|
fabric
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.0.1 (NeoForge) 26.1-1.0.1 |
26.1
|
neoforge
|
Download |
|
HearthGuard - Mobs Fear Campfires 1.0.1 26.1-1.0.1 |
26.1
|
fabric
|
Download |
|
HearthGuard 1.0.1 1.21.1-1.0.1 |
1.21.1
|
fabric
|
Download |
|
HearthGuard 1.0.1 1.21.1-1.0.1 |
1.21.1
|
neoforge
|
Download |
|
HearthGuard 1.0.1 1.21.11-1.0.1 |
1.21.11
|
neoforge
|
Download |
|
HearthGuard 1.0.1 1.21.11-1.0.1 |
1.21.11
|
fabric
|
Download |
|
Mobs Fear Fire – HearthGuard 1.0.0 (NeoForge) 1.21.11-1.0.0 |
1.21.11
|
neoforge
|
Download |
|
Mobs Fear Fire – Campfire Protection (HearthGuard) 1.0.0 1.21.1-1.0.0 |
1.21.1
|
fabric
|
Download |
|
HearthGuard: Campfires Repel Hostile Mobs 1.21.11-1.0.0 1.21.11-1.0.0 |
1.21.11
|
fabric
|
Download |