Back to mods
Custom Portal API Reforged project artwork

CurseForge · Minecraft mod

Custom Portal API Reforged

Forge port of Fabrics Custom Portal API, updated for newer versions of MC.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Custom Portal API Reforged release should I use?

Updated 11 months ago
Latest stable file customportalapi-reforged 1.7.0
Game version 1.21.10
Loader NeoForge

Custom Portal API Reforged customportalapi-reforged 1.7.0 targets 1.21.10 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Custom Portal API Reforged required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Custom Portal API Reforged customportalapi-reforged 1.7.0 need?

customportalapi-reforged 1.7.0. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Custom Portal API Reforged without breaking your instance.

Built for Custom Portal API Reforged customportalapi-reforged 1.7.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use customportalapi-reforged 1.7.0. It targets 1.21.10 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside customportalapi-reforged 1.7.0. It opens that exact file at the source.

About this project

What does Custom Portal API Reforged add?

Custom Portal API Reforged

Library mod allowing developers to create portals to their custom dimensions easily. These custom portals will function exactly like nether portals, except being fully customizable. You can control the frame block, portal block, tinting, ignition source, destination, and more!

Usage

Add the repository/mod to your build.gradle.

repositories {
maven { url 'https://maven.azuredoom.com/mods' }
}
dependencies {
//1.20.1
implementation fg.deobf('net.kyrptonaught.customportalapi:customportalapi-reforged:MODVERSION')

//1.20.2+
implementation "net.kyrptonaught.customportalapi:cpapireforged-neo-1.20.2:MODVERSION"

}

Now onto creating and registering the portal itself, this is simple thanks to the CustomPortalBuilder class. We will make use of this in FMLCommonSetupEvent.

The following is a very simple portal that will take us to The End, and is lit by right-clicking the frame with an Eye of Ender:

CustomPortalBuilder.beginPortal()
.frameBlock(Blocks.DIAMOND_BLOCK)
.lightWithItem(Items.ENDER_EYE)
.destDimID(new ResourceLocation("the_end"))
.tintColor(45,65,101)
.registerPortal();

A Nether portal would be registered as follows:

CustomPortalBuilder.beginPortal()
.frameBlock(Blocks.OBSIDIAN)
.destDimID(new ResourceLocation("the_nether"))
.tintColor(131, 66, 184)
.registerPortal();

CustomPortalBuilder is filled with plenty of methods to customize the functionality of your portal, all of which are documented in the class.

Some noteworthy methods to mention:

*- lightWithWater/Item/Fluid - These allow you to control how the portal is lit.

  • onlyLightInOverworld - Only allow the portal to be used in the overworld to your destination of choice
  • flatPortal - Flat Portal similar to the End or the Twilight Forest portal.*

Credits

Based off the main Fabric mod HERE and an older ported mod HERE.

Project description from CurseForge.

Pick your setup

Custom Portal API Reforged by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

10 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Custom Portal API Reforged versions and loaders

22 of 22 releases match

Looking for an older file? The official CurseForge project page is in Resources.