Datapack Portals
Create custom portals using CustomPortalApi with datapacks.
Inside your datapack create a "portals" folder, this is where you'll put all your custom portals. There is no set limit of allowed portals, as long as there aren't any duplicate frame blocks.
Here is an example file: stoneendportal.json
{
"block": "minecraft:stone",
"dim": "minecraft:the_end",
"r": 66,
"g": 135,
"b": 245
}
- block: the block used for the frame.
- dim: the dim id to travel to
- r, g, b: the color to tint the portal
There are also some optional arguments
- ignitionType: the type of ignition to use. Options are "BLOCK", "FLUID", "ITEM".
- ignitionSource: the id for block/item/fluid for ignition of the portal, the only supported block being fire : "minecraft:fire". All items and fluids are supported.
- returnDim: the dimmension to return to, allows for specifying a location other than the overworld to return to
That is all! Portals will function exactly like vanilla nether portals do

How to Install Datapack Portals (Mod)
Datapack Portals by kyrptonaught is verified for Fabric across Minecraft versions 1.16.3, 1.16.4, 1.17, 1.17.1, 1.18.2, 1.19, 1.19.1, 1.19.2 (latest release: 1.2.3-1.21, file size: 230 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.16.3, 1.16.4, 1.17, 1.17.1, 1.18.2, 1.19, 1.19.1, 1.19.2) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Datapack Portals file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add VersionAdd to your portal.json:
"portalType" : "flat"
This also fixes compat with mods using the newer version of Custom Portal Api
Adds error messages if registered portal contains null blocks.
And a potential fix for a load order issue