MINECRAFTHUB.IO
Java Mods

Diagonal Fences

Diagonal Fences lets fence posts connect diagonally instead of only at right angles, closing pen corners and fence lines without gaps. It runs on Fabric and NeoForge, reaching 26.2, with an older Forge build available.

By Fuzs via Modrinth.

Diagonal Fences connecting oak and jungle fence posts into new corner shapes on a Minecraft farm
Section
Java Mods
Platform
Java
Checked
Updated
Versions
1.18.2, 1.19.2, 1.20.1, 1.20.4, 1.21.1, 1.21.8, 1.21.11, 26.1, 26.2
1/3
Diagonal Fences title card over a blurred Minecraft farm scene with fenced animal pens

What Diagonal Fences works with.

PlatformJava Edition
LoadersFabric, NeoForge, Forge
Minecraft versions1.18.2, 1.19.2, 1.20.1, 1.20.4, 1.21.1, 1.21.8, 1.21.11, 26.1, 26.2
EnvironmentClient, Server

Diagonal Fences is a Fabric and NeoForge mod by Fuzs that lets fence posts connect diagonally instead of only at right angles, closing pen corners and fence lines without gaps or extra blocks. It runs on the client and the server, and needs the Puzzles Lib library installed alongside it. The mod reaches Minecraft 26.2 on Fabric and NeoForge; a separate Forge build exists but stopped updating years earlier.

What Diagonal Fences changes

Vanilla fences only connect to a neighboring block on the four cardinal sides, so a fence line running at an angle leaves a visible gap at every corner. Diagonal Fences closes that gap by adding a diagonal connection whenever two fence posts meet corner to corner. It detects fences added by other mods automatically, and a diagonalfences:non_diagonal_fences block tag lets a pack builder opt specific fences out if the new shape ever looks wrong. It is a shape-only change: no new blocks, items, or recipes, and it works with most resource packs without extra setup.

Diagonal Fences only reshapes fences. Walls and glass panes get the same diagonal treatment through two separate mods by the same creator, Diagonal Walls and Diagonal Windows, not through this project.

Installing Diagonal Fences and its dependencies

Diagonal Fences requires Puzzles Lib on every loader. A Fabric install also needs Fabric API and Forge Config API Port, since NeoForge already ships its own config system. Drop the mod and its dependencies into the mods folder on both the client and the server; because it changes block shapes, a server skipping it will not show the diagonal connections to players.

Supported Minecraft versions

  • 1.18.2 through 1.20.4 on Fabric, Forge, and NeoForge
  • 1.20.1, a Forge bugfix build and the last Forge release, from November 2024
  • 1.21.1 through 1.21.11 on Fabric and NeoForge
  • 26.1 and 26.2 on Fabric and NeoForge, the current release

Watch Diagonal Fences in action

This community showcase demonstrates diagonal fence connections across vanilla and modded fence types, including the animal-pen and mixed-material builds the change is aimed at.

Diagonal Fences mod showcase

Questions about Diagonal Fences.

5 questions

What does Diagonal Fences do?

It lets fence posts, including fences added by other mods, connect diagonally instead of only at right angles. That closes the gap that normally appears where a fence line turns a corner or wraps an animal pen. The change only affects shapes: no new blocks, items, or recipes are added.

Does Diagonal Fences work with Forge?

A Forge build exists, but it stopped receiving updates after Minecraft 1.20.4. Its most recent release, from November 2024, was a bugfix build for the older 1.20.1 version. Fabric and NeoForge are the loaders still getting new-version support, both currently reaching 26.2.

What do I need to install alongside Diagonal Fences?

Puzzles Lib is required on every loader. A Fabric install also needs Fabric API and Forge Config API Port, since NeoForge already includes its own config system and does not need either. Install the mod and its dependencies on both the client and the server.

Does Diagonal Fences also connect walls and glass panes diagonally?

No. Diagonal Fences only reshapes fences. Walls and glass panes get the same diagonal connections through two separate mods by the same creator, Diagonal Walls and Diagonal Windows, so a build that mixes fences, walls, and panes needs all three mods installed.

Is there a Bedrock Edition version of Diagonal Fences?

No. Diagonal Fences is a Java Edition mod built for Fabric and NeoForge, with an older Forge build. A separate, unrelated Bedrock add-on with a similar name exists from a different creator; the two projects share no code, files, or connection.

More Java Mods like Diagonal Fences.

Guides for Java Mods.

Browse all Minecraft Java mods