promotional bannermobile promotional banner

Custom Portal API Reforged

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

customportalapi-reforged 1.2.2

File namecpapireforged-neo-1.21.1-1.2.2.jar
Uploader
AzureDoomCAzureDoomC
Uploaded
Jul 8, 2025
Downloads
773.4K
Size
91.9 KB
Mod Loaders
NeoForge
File ID
6744404
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:custom-portal-api-reforged-902717:6744404"

Learn more about Curse Maven

What's new

v1.2.2

✨ New Features

  • Added Ignite Events

    • Implemented PortalIgniteEvent and PortalPreIgniteEvent interfaces.
    • Included corresponding handlers and invokers.
    • 🔧 These events allow:
      • Executing custom logic before and after portal ignition.
      • Cancelling the ignition entirely, if desired.
  • Player Entity in Ignite Context

    • The player is now included as part of the ignition source in item-use events.
    • ✅ Matches upstream behavior.
    • 🔍 Enables event consumers to identify which player attempted to light the portal.

⚠️ Breaking Change

  • Fixed Item Usage Behavior on Failed Portal Lighting
    • customportalapi-reforged previously cancelled item usage when ignition failed, which is opposite of upstream behavior.
    • This has been reversed: item usage is now only cancelled if the portal is successfully lit.
    • Example: Using an Eye of Ender to light a portal will no longer cause it to fly off and possibly break—it will be consumed only when ignition succeeds.

Credit murderspagurder for this PR!

This mod has no additional files