HomeJavaModsFence Gate Fix
Fence Gate Fix
ModsJava

Fence Gate Fix

by Eiim · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 26.1–26.2⬇ Download for 1.16–1.21.11
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

A simple server-side Fabric mod for 1.16+ to improve the interaction between fence gates and walls.

Normally, fence gates that connect to walls have their model visually shifted down three pixels to fit better. However, if there's a line of three or more fence gates, it doesn't adjust the ones in the middle. This mod takes a simple approach by counting other fence gates which have the in_wall tag as walls for this fence gate model change detection.

Before After
A line of three fence gates with walls on each side. The middle fence gate is offset compared to the other two. A line of three fence gates with walls on each side. The middle fence gate is in line with the other two.

As a side effect, it's possible to create standalone rows of 2+ fence gates which have this downward shift but aren't connected to any walls, if you wanted to do so.

This mod only needs to be installed on the server. If installed on the client, it will avoid a short stutter when placing fence gates in the relevant configuration as the client thinks it's in the wrong state before the server updates it. Conversely, if it's only installed on the client, there will be a stutter as the client thinks it should go in the in_wall state before the server corrects it, which will also happen when one of the neighboring fence gates is opened or closed. These are only temporary visual issues and the presence or absence of the mod on the client will not affect functionality in any way.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more