ModsFinder

Friend Code Mod

by SoniEx2

Friend Code Mod lets players host a world and join it from a remote friend's computer through a short code, without port forwarding or a hosting service.

FabricClient or server, optional0BSD1.19 – 1.20.4

What it does

Open To... replaces the Open LAN flow with a Friend Code submenu that generates a code for the current world, and Direct Connect gets a matching submenu so a player can enter a code to join. Connections travel through the I2P anonymity network, and the connection is made through Multiplayer as usual.

Two kinds of code are supported: ephemeral codes, which tie to a single play session, and persistent codes, which are attached to a world and stay the same across sessions. World codes persist even when the world is opened on a different computer. Both sides need a running I2P router, since the mod does not bundle one. A router must be installed externally and configured with a SAM bridge. If no router is available, the game still launches and shows an error when a player tries to host or connect.

The mod began as a submission to a game jam, with a theme centered on the player. Its author describes the motivation as an alternative to centralized options such as Minecraft Realms, which the author considers tied to a large userbase and money, and which cannot run mods. Friend Code Mod is a Fabric mod for Minecraft 1.19 – 1.20.4, released under the 0BSD license. Its files are not open source, but the public source code and issue tracker are linked by the author.

Key features

  1. Friend codes for hosting

    Open To... offers a Friend Code submenu in place of Open LAN, so a world can be opened to remote players with one code.

  2. Joining with Direct Connect

    Direct Connect gains a Friend Code submenu where a player enters a code to reach a host.

  3. Persistent and ephemeral codes

    Codes can be tied to a single play session or stay bound to a world, so a world keeps its code between sessions.

  4. I2P routing

    Connections travel through a locally run I2P router that the player or server owner installs and configures separately.

Compatibility

Latest build for each game version and loader.

1.20.41.1.1+1.20.4
1.19.21.1.0
1.19.11.1.0
1.191.1.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Optional 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Optional

How it compares

Full comparison

Remote Resource Pack and No Realms Button are both client-side only and open source under the MIT License, but neither offers a remote connection method, so they do not replace Friend Code Mod. TryHard FriendUtil is client-side only and not open source, published under All rights reserved for 1.21.11, which is outside the range this mod covers.

ModLoadersGame versionsEnvironmentUpdated
Friend Code ModFabric1.19 – 1.20.4Client or server, optional2024-01-09
TryHard FriendUtilFabric1.21.11Client-side only2026-03-30
Remote Resource PackFabric, Forge, NeoForge and Quilt1.18.2 – 26.3Client-side only2026-09-15
No Realms ButtonFabric, Forge, NeoForge and Quilt1.16 – 26.3Client-side only2026-07-12

Questions

Does Friend Code Mod need Fabric API?

Fabric API is an optional dependency. The mod runs on Fabric for 1.19 – 1.20.4 without it, though some features may depend on it.

Does the server need the mod installed?

Either side can run it, and neither needs it. Installing it on one side is enough for that side's features to work.

What happens if the I2P router is not running?

The game still launches. When a player tries to host or connect with a code, an error is displayed explaining the router is not available.

In the catalog

Friend Code Mod is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 13,907 mods support Minecraft 1.20.4.

More from SoniEx2

All projects

Similar mods

What the author says

This mod adds friend codes to Minecraft, which are an easy way to play in the same world with remote friends. They can be created by selecting "Open To...", which replaces "Open To LAN", and selecting the "Friend Code" submenu. They can be connected to through "Multiplayer" -> "Direct Connect", which also gets a…
SoniEx2, on the Modrinth page

Official listing

Owner
SoniEx2
Published
2022-07-05
Updated on Modrinth
2024-01-09
Facts verified
2026-10-15

Tags