SafeZone
by Er1ikHan
SafeZone is a Fabric client mod that watches for nearby players outside a whitelist and runs a command of the player's choice when one gets close.
What it does
When a player missing from the whitelist comes within a set distance, the mod runs a preset command automatically, for example to quit to a hub, teleport to spawn or return to a safe position. The check happens once per second, which keeps the effect on game performance small. It is built for open areas such as PvP zones or towny servers, where a builder or gatherer can work without watching for approaching players.
Protection can be switched on and off, and the trigger distance is set in blocks. Trusted friends are added by name, separated by commas. Settings open with the P key by default, and the key can be changed in the normal Controls menu. The mod is client-side only, so the server does not need it and players join without installing anything. Files are available for Fabric alone, across six release versions 1.20.1 – 1.20.6, under the MIT License, and the project is not open source.
Key features
Automatic protection
Detection runs in the background and fires the chosen command as soon as a non-whitelisted player is in range.
Whitelist of trusted names
Friends are listed by name in the settings, so they never trigger the protection.
Configurable response command
Any command can be set to run on trigger, such as a hub or spawn teleport, so the reaction suits the server.
Quick on and off switch
Protection can be toggled without leaving the game, which is useful when the area is safe again.
Settings screen
A GUI opens with the P key by default and holds the on/off switch, the trigger distance and the trusted names.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Working in open PvP areas
A gatherer on a towny server sets a trigger distance and a teleport command, then works without watching the horizon.
Reacting to snatching attempts
A player can have the response run at once when another player approaches during an unexpected situation.
Who it’s for: Players on Fabric who gather, build or roam in open PvP areas or towny servers, and who want an automatic reaction when another player comes near.
Questions
Does SafeZone need to be installed on the server?
Which loader does SafeZone support?
How often does the mod check for nearby players?
In the catalog
SafeZone is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 11,154 mods support Minecraft 1.20.6.
More from Er1ikHan
Similar mods
What the author says
!NOTE!: For those who don't understand the mod, its purpose is to allow you to escape when another player approaches you. For example, if you're mining in an open PvP area on a towny server, this mod puts an end to worrying about whether someone might come along. !NOT!: modu anlayamayanlar için modun amacı yakınına…
Official listing
- Modrinth page
- modrinth.com/mod/safealan
- Owner
- Er1ikHan
- Published
- 2026-02-01
- Updated on Modrinth
- 2026-02-17
- Facts verified
- 2026-10-15
