The Fence Unleashed
Modby TheMrMilchmann
Prevents mobs that are not leashed from passing through fence gates
Type
Mod
CurseForge Downloads
159,148
CurseForge ID
521072
Last Updated
Aug 15, 2026
Description

Have you ever been annoyed by that one cow that just didn't want to stay in its pen and managed to get out just before you could close the fence gate?
The Fence Unleashed is a small QoL mod that helps in exactly this scenario by preventing mobs that are not leashed from passing through fence gates. The mod uses an algorithmic approach to determine if an entity may pass through a fence gate and changes the behavior accordingly.
The Fence Unleashed's generic implementation makes the mod compatible with many custom fence gates and mobs. However, the behavior for some mobs from other mods may be inferred incorrectly. For this case, the mod provides a configuration file which can be used to tweak the mod's algorithm as needed.

Frequently Asked Questions
Why is this mod called "The Fence Unleashed" when it actually improves fence gates?
Excellent question! Did you ever come up with a pun about fence gates? No? Yeah, I didn't either. That's pretty much it... so I guess I'll add another random fact here: The initial name for this mod was "Fency" (and this name is still used internally) but it had to be changed for technical reasons.
Is The Fence Unleashed compatible with fence gates added by other mods?
The Fence Unleashed modifies vanilla fence gate logic to be compatible with all sorts of fence gates. Thus, it is very likely, but not guaranteed that it will work with fence gates from other mods too.
Can I use The Fence Unleashed in my modpack?
Yes, please respect the license terms.
Can I use this mod with existing saves?
Yes, The Fence Unleashed does not affect savegames. It can be added or removed at any time.
Mob X from mod Y behaves weirdly with The Fence Unleashed. Is there anything I can do about this?
While The Fence Unleashed can usually correctly identify whether a mob can be leashed and adjusts the behavior accordingly, some mods do not correctly implement the required checks. To make sure that this gets fixed properly, please file an issue. You do not have to wait for a fix, however. Fortunately, The Fence Unleashed provides a configuration file in which its behavior can be adjusted.
To learn more about The Fence Unleashed (including future features and the support roadmap) head over to the mod's GitHub Repository.
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Screenshots
Similar Mods
SDM Economy [Forge/Fabric]
A library for creating and managing currencies
FTB Islands
Island creator made for FTB Infinity Skyblock
Knowlogy Book
An expandable wiki-like book with documentation about the game, inspired by the knowledge book, powered by lavender.
Sophisticated wolves
This mod aims to improve wolves in the games through a series of gameplay tweaks, AI improvements, and added features.
Immersive FX
Dynamic Surroundings but better...
Happy Go Lucky - RPG Random Teleportation
RPG Theme, Randomly Teleports all players to another location every 5 minutes.