mods / riverbridges

River Bridges

Plank, stone, Kweebec and Trork bridges appear over rivers while the world generates.

800+ downloads

Download on CurseForge

River Bridges puts real crossings into your world. While new land generates, the mod looks for places where a river is worth bridging and builds a bridge there. Every bridge sits on solid banks, at the right height over the water, as if it had always been there.

Some crossings are ruined or replaced by a fallen tree, and one bridge can have a guard. The mod is server-side only: players do not need to install anything. Inspired by YUNG's Better Bridges.

Type
Server plugin + prefabs
Client mod
Not needed
Where
Rivers in plains, new chunks only
Admin command
/rb find
Permission
riverbridges.admin
Config
bridges.json in the mod's data folder

Getting started

River Bridges banner
Stone and plank crossings on rivers.
  1. Put the mod jar in the server's mods folder and start the server. Nothing is needed on the players' side.
  2. Explore new land. Bridges are placed only in chunks that generate for the first time, so already explored areas stay as they were.
  3. Follow rivers through the plains. Two bridges are always at least 192 blocks apart.
  4. To find one quickly, an admin can stand near a river and run /rb find - it scans 192 blocks around you, builds a bridge at a valid crossing and teleports you there.
  5. /rb list shows every bridge placed in the world; /rb tp <number> takes you to one.

The bridges

Six bridges ship with the mod. A higher weight means the bridge is picked more often. River width is the water the bridge has to span.

Plank bridge

A simple wooden walkway. About 3 in 10 times it is a fallen tree across the river instead.

Length
21
River width
6-16
Weight
5

Stone bridge

A plain stone crossing.

Length
24
River width
8-19
Weight
7

Old arched bridge

About 4 in 10 times it appears broken. It is the bridge that can have a guard.

Length
29
River width
10-24
Weight
4

Kweebec bridge

A crossing in the Kweebec style.

Length
29
River width
10-24
Weight
3

Trork bridge

A crossing in the Trork style.

Length
34
River width
10-28
Weight
3

Great stone bridge

A long landmark crossing for wide rivers, with towers on both banks. It needs solid ground on 3 blocks of each bank.

Length
35
River width
14-30
Weight
3

Where bridges are built

Each new chunk gets a seeded roll. If it passes, the mod samples bank spots in the chunk and checks a straight crossing along X or Z, using only the world generator's data.

  • Solid banks on both ends of the bridge.
  • The river must fit the bridge: neither too narrow nor too wide.
  • The two banks may differ in height by at most 3 blocks.
  • The river must run on for at least 16 blocks and be at least 2 deep, so ponds are skipped.
  • The middle of the crossing must be a plains river. Open sea, oceans and lakes are never bridged.
  • Water built into a bridge runs and spills like poured water instead of standing still.

Bridge guards

The old arched bridge has an 18 % chance to get a guard. The guard spawns once a player comes near and the bridge's chunk is active.

Bridge Guard

Patrols the bridge deck and is hostile to players. Ignores wildlife and other factions. If it falls into the river, it swims back to the bank.

Health
120
Weapon
Iron shortbow
Loot
Outlander Marauder drops

Settings and custom bridges

On the first start the bundled bridges.json is copied to the mod's data folder. Edit that copy and restart the server. Bridges added in later updates are added to your existing file, so you keep your settings.

  1. Add your own bridge: put a prefab at Server/Prefabs/RiverBridges/<name>.prefab.json in the mod.
  2. Measure its length along its local +X axis (or set yawOffset if it faces another way).
  3. Add an entry to variants with length, minWater, maxWater and weight. Optional: biomeMask, alignToWater, yOffset, alternatePrefab and alternateChance for a ruined version.
  4. Restart the server.
SettingDefaultWhat it does
enabledtrueBridges on or off.
spawnChance0.45Chance per new chunk that the mod looks for a crossing.
minDistance192Least distance between two bridges (blocks).
slopeTolerance3Largest height difference between the banks.
deckClearance1Extra blocks of deck height above the higher bank (0-2).
minRiverLength16The river must run on for at least this many blocks.
minWaterDepth2The river must be at least this deep.
maxBankOverhang10How far a bridge may reach onto land at each end.
requirePlainstrueOnly in plains.
requireRiverBiometrueThe middle must be a river biome.
attemptsPerChunk6Bank spots tried per chunk.
liveWatertrueWater inside bridge prefabs flows.
guardChancesbridge1: 0.18Guard chance per bridge.

Commands

CommandWhat it doesPermission
Look for a crossing near you (default 192 blocks), build a bridge and teleport to itriverbridges.admin
The bridges placed in this world, with their numbersriverbridges.admin
Teleport to a bridge from the listriverbridges.admin

Questions

Do I need a new world?

No, but bridges appear only in chunks that generate for the first time. Explore new land to find them.

Why are there no bridges over the sea?

On purpose. The mod skips oceans, seas, lakes and open water and only bridges plains rivers.

Does it work with StructureV2?

Yes. With StructureV2 (2.0.0 or newer) installed, every bridge claims its own ground, so villages and dungeons never land on top of one, and bridges show up in the StructureV2 list.

Can I make bridges rarer or more common?

Change spawnChance and minDistance in bridges.json, or the weight of each bridge, and restart the server.

The aliases?

/rb, /riverbridges and /bridge are the same command.