The Fence Unleashed
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 (the-fence-unleashed.toml in the config folder) which can be used to
tweak the mod's algorithm as needed.
Frequently Asked Questions
(Just kidding, we just released this. No one has asked for or about this.)
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.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 25d ago | 1 | ||||
| 3mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 |
_Released 2026 Oct 03_
#### Requirements
- NeoForge:** 26.3.0.45-beta
#### Overview
- Updated to Minecraft 26.3
_Released 2026 Jul 16_
#### Requirements
- NeoForge:** 26.2.0.21-beta
#### Overview
- Updated to Minecraft 26.2
_Released 2026 Apr 27_
#### Requirements
- NeoForge:** 26.1.2.30-beta
#### Overview
- Updated to Minecraft 26.1
_Released 2025 Dec 14_
#### Requirements
- NeoForge:** 21.11.6-beta
#### Overview
- Updated to Minecraft 1.21.11
_Released 2025 Oct 10_
#### Requirements
- NeoForge:** 21.10.6-beta
#### Overview
- Updated to Minecraft 1.21.10
_Released 2025 Oct 10_
#### Requirements
- NeoForge:** 21.9.16-beta
#### Overview
- Updated to Minecraft 1.21.9
_Released 2025 Jul 14_
#### Requirements
- NeoForge:** 21.7.23-beta
#### Overview
- Updated to Minecraft 1.21.7
_Released 2025 Jun 17_
#### Requirements
- NeoForge:** 21.6.0-beta
#### Overview
- Updated to Minecraft 1.21.6
_Released 2025 Mar 27_
#### Requirements
- NeoForge:** 21.5.4-beta
#### Overview
- Updated to Minecraft 1.21.5
_Released 2024 Dec 05_
#### Requirements
- NeoForge:** 21.4.6-beta
#### Overview
- Updated to Minecraft 1.21.4
_Released 2024 Nov 29_
#### Requirements
- NeoForge:** 21.3.52-beta
#### Overview
- Updated to Minecraft 1.21.3
_Released 2024 Nov 29_
#### Requirements
- NeoForge:** 21.1.83
#### Overview
- Updated to Minecraft 1.21.1
_Released 2024 Jun 13_
#### Requirements
- NeoForge:** 21.0.0-beta
#### Overview
- Updated to Minecraft 1.21
_Released 2024 May 01_
#### Requirements
- NeoForge:** 20.6.12-beta
#### Overview
- Updated to Minecraft 1.20.6
_Released 2024 Jan 07_
#### Requirements
- NeoForge:** 20.4.80-beta
#### Overview
- Updated to Minecraft 1.20.4
_Released 2024 Jan 07_
#### Requirements
- NeoForge:** 20.2.86
#### Overview
This release of The Fence Unleashed for Minecraft 1.20.2 migrates the mod to
NeoForge and changes the license conditions.
##### Migration to NeoForge
Earlier this year, [NeoForge](https://neoforged.net/) was forked from Minecraft
Forge with significant parts of the team moving on to the new project. While the
two versions were initially compatible, NeoForge quickly evolved and became
incompatible with Forge's API. Now, a few months after the split, NeoForge and
the NeoForged project as a whole are more actively developed and the ecosystem
seems healthier.
Thus, starting with this version, The Fenced Unleashed will target NeoForge
instead of Minecraft Forge. Specifically, there will be no more updates
targeting Minecraft Forge for Minecraft 1.20 and later. However, there might
still be updates targeting Minecraft Forge for earlier versions.
This does not directly affect players. Even migrating a world to NeoForge is
fine, since this update does not break save-game compatibility.
##### Licensing Changes
Going forward, The Fence Unleashed is made available under a new license that is
tentatively called "Fency license". (The license's conditions are final but the
name is subject to change.) The first three clauses of the Fency license are
equal to the BSD3 license and essentially clarify attribution. The BSD3 license
itself is, like the MIT license, a permissive open-source license. However, such
a license is not fit for video game mods. Thus, clauses 4. and 5. impose further
restrictions.
Open-source licenses in general, do not restrict commercial use of copyrighted
work. For example, third parties may specialize in redistributing mods to
generate ad revenue without the copyright holders' involvement. For software
libraries, this does not matter since the target group is other developers and
downloads do not matter. However, video game mods target players of a video game
instead and may use ad revenue as a source of income. Open-source licenses do
not protect the copyright holders from such financial exploitation.
Additionally, third-party redistributions pose an inherent security risk as
players are unlikely to perform integrity checks on downloaded files.
The fourth clause restricts commercial redistribution and differentiates between
original and derivative work. It is important to emphasize that this clause does
not restrict general commercial use. For example, third parties may produce
monetized videos without express written consent. Similarly, redistribution of
the mod is fine when there is no commercial intent.
Further, permissive licenses allow modifications and derivatives to be published
under different licenses, including ones that keep the modified source code
private.
The fifth clause of the Fency license requires derivatives and modifications to
be made publicly available under the same license terms as the mod itself. This
ensures that fixes and improvements are given back to the community and cannot
be kept private.
_Released 2023 Dec 07_
#### Requirements
- MinecraftForge:** 1.20.2-48.0.1
#### Fixes
- Work around Forge's removal of
FakePlayerand support 48.0.42+. [[GH-6](https://github.com/TheMrMilchmann/TheFenceUnleashed/issues/6)]
_Released 2023 Sep 22_
#### Requirements
- MinecraftForge:** 1.20.2-48.0.1
#### Overview
- Updated to Minecraft 1.20.2
_Released 2023 Jun 17_
#### Requirements
- MinecraftForge:** 1.20.1-47.0.3
#### Overview
- Updated to Minecraft 1.20.1
_Released 2023 Jun 09_
#### Requirements
- MinecraftForge:** 1.20-46.0.2
#### Overview
- Updated to Minecraft 1.20
_Released 2023 Mar 15_
#### Requirements
- MinecraftForge:** 1.19.4-45.0.1
#### Overview
- Updated to Minecraft 1.19.4
_Released 2022 Dec 08_
#### Requirements
- MinecraftForge:** 1.19.3-44.0.0
#### Overview
- Updated to Minecraft 1.19.3
_Released 2022 Oct 22_
#### Requirements
- MinecraftForge:** 1.19.2-43.1.1
#### Fixes
- Added MineColonies' visitors (
minecolonies:visitor) to the default allowlist. - This will only take effect for new installations. If you wish to whitelist
add the exception manually.