HomeJavaModsLinked Portals
Linked Portals
Why would you want to use this plugin?

Nether portals are notorious for creating lag and for spontaneously changing their associated exit portals without warning. This sometimes even happens when you carefully match coordinates between the Overworld and the Nether (the normal method for reliably linking portals). Resolving this on a busy server with many players building near each other can be particularly frustrating for the players. In addition, the normal portal search process that the server employs to find an exit portal can cause brief lag spikes. The linked portals supported by this plugi do not require broad searches and so avoid lag spikes.

How does this plugin work?

This plugin builds on the existing compass/lodestone mechanic to create an in-game mechanic so that a player can reliably link one nether portal to another. Specifically, a lodestone-linked compass placed in an item frame on a nether portal's obsidian frame will indicate where the game should find the corresponding exit portal. That is, the compass points to the lodestone and the lodestone (being part of the exit portal's frame) is used to find the desired exit portal.

In addition to the blocks needed to construct the portals themselves, a player will need the following to link the portals:
Go to the desired exit portal (constructing it in the desired location if necessary). Place a lodestone in one of the bottom corners of the destination/exit portal. Use a compass on the lodestone so that the compass becomes linked to the lodestone block. Note that while the lodestone can be in any corner of the portal frame, the plugin behaves best when the lodestone is in one of the bottom corners. Now, go to the entry portal that you wish to link to this exit portal and place an item frame somewhere on the portal frame and place the linked compass in the item frame. The entry portal is now linked to the exit portal.
Every time a player or entity enters that portal, the plugin will search for the compass in the item frame, use the compass to find the lodestone, and use the lodestone location to inform the game exactly where the exit is so that the game does not search for one.

You can now repeat this process in the other direction to link the exit portal back to the source portal for reliable return travel.

When a player successfully places a lodestone-linked compass in the item frame, the plugin will hide the item frame for a cleaner look. This also serves to confirm that the plugin will attempt to use the compass to link portals. This behavior can be changed in the plugin's configuration.

Which portals can be linked?

Normally, the plugin will only allow a player to link portals if the portals would otherwise be accessible to each other using normal game mechanics (see portal search). That is, by default, the plugin does not allow a player to create and link portals they otherwise could connect using normal game semantics. If a player attempts to link two portals that the game would never connect normally, then the plugin will notify the player that it refuses to honor the link and the normal search for an exit portal will occur.

Even though the default linking behavior is strict, this behavior can be relaxed by setting strictLinking to false in config.yml. When strictLinking has been disabled, the plugin will allow any two portals to be linked. Normal distance limitations between portals is no longer enforced. Players can even link two portals in the same world.

How do I configure the plugin?

When the plugin is loaded for the first time, it will create a LinkedPortals directory in the plugin directory and it will create a config.yml file in that directory if it does not already exist. If config.yml already exists, the plugin will NEVER modify it or overwrite it, so your changes to it will never be lost. However, every time the plugin starts, it will create/replace a config.default.yml file. This latter file serves as documentation for config.yml. It shows every configuration option that the plugin supports, describes how to set those options via comments, and documents the default values for those options.

Because the plugin never modifies config.yml, any new options supported by future releases of the plugin will only be documented in config.default.yml. If you wish to change the default settings for any new options once they are supported, you will need to add them to config.yml yourself, possibly using config.default.yml as a template.


DIAGNOSING PROBLEMS

KNOWN ISSUES

COMMANDS and PERMISSIONS
All commands are implemented as sub-commands of the /linkedportals command.

Code (Text):
/linkedportals
permission: linkedportals.commands.use
This command does nothing without further arguments. However, a player must have the required permission to use any linkedportals commands and for the command to show up in the player's available command list.​

Code (Text):
/linkedportals reload
permission: linkedportals.command.reload
This command directs the plugin to reload its configuration from disk.​

Code (Text):
/linkedportals show
permission: linkedportals.command.show
This command displays the status of the plugin and its configuration.​

Commands

Plugin details

Read from the plugin's own plugin.yml.

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.

Linked Portals is a free Minecraft Java mod. Compatible with Minecraft 1.16, 1.17, 1.18, 1.19. Downloaded 2,237 times (via Spigot). Download it and open it directly in the game.

Explore more