Fence Gate Fix
ModMIT

Fence Gate Fix

Simple Fabric mod to fix fence gate connections with walls.

75
Downloads
4
Followers
2 months ago
Updated
📦
1
Versions

📖About Fence Gate Fix

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.