{"id":52902,"date":"2026-06-03T01:24:20","date_gmt":"2026-06-02T22:24:20","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/"},"modified":"2026-06-03T01:24:20","modified_gmt":"2026-06-02T22:24:20","slug":"custom-portal-api-reforged","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/","title":{"rendered":"Custom Portal API Reforged"},"content":{"rendered":"<p><center><\/p>\n<p><font size=+4><b>Custom Portal API Reforged<\/font><\/b><\/p>\n<p><font size=+1><br \/>\nLibrary 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!<br \/>\n<\/br><\/br><\/p>\n<p>![Some example of portals](https:\/\/i.imgur.com\/jqupA9K.png)<\/p>\n<p><font size=+2><b>Usage<\/font><\/b><\/p>\n<p>Add the repository\/mod to your build.gradle.<br \/>\n<\/font><br \/>\n<\/center><\/p>\n<p>&#8220;`java<br \/>\nrepositories {<br \/>\n        maven {url &#8216;https:\/\/maven.azuredoom.com\/mods&#8217;}<br \/>\n}<br \/>\ndependencies {<br \/>\n\/\/1.20.1<br \/>\n        implementation fg.deobf(&#8216;net.kyrptonaught.customportalapi:customportalapi-reforged:MODVERSION&#8217;)<br \/>\n\/\/1.20.2+<br \/>\nimplementation fg.deobf(&#8220;net.kyrptonaught.customportalapi:cpapireforged-neo-1.20.2:MODVERSION&#8221;)<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p><center><\/p>\n<p><font size=+1><\/p>\n<p>Now onto creating and registering the portal itself, this is simple thanks to the CustomPortalBuilder class. We will make use of this in FMLCommonSetupEvent.<\/p>\n<p>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:<br \/>\n<\/center><\/p>\n<p>&#8220;`java<br \/>\nCustomPortalBuilder.beginPortal()<br \/>\n        .frameBlock(Blocks.DIAMOND_BLOCK)<br \/>\n        .lightWithItem(Items.ENDER_EYE)<br \/>\n        .destDimID(new ResourceLocation(&#8220;the_end&#8221;))<br \/>\n        .tintColor(45,65,101)<br \/>\n        .registerPortal();<br \/>\n  &#8220;`<\/p>\n<p>A Nether portal would be registered as follows:<br \/>\n&#8220;`java<br \/>\nCustomPortalBuilder.beginPortal()<br \/>\n        .frameBlock(Blocks.OBSIDIAN)<br \/>\n        .destDimID(new ResourceLocation(&#8220;the_nether&#8221;))<br \/>\n        .tintColor(131, 66, 184)<br \/>\n        .registerPortal();<br \/>\n  &#8220;`<\/p>\n<p><center><br \/>\nCustomPortalBuilder is filled with plenty of methods to customize the functionality of your portal, all of which are documented in the class.<\/p>\n<p><\/br><\/br><br \/>\nSome noteworthy methods to mention:<br \/>\n<\/center><\/p>\n<p> &#8211; lightWithWater\/Item\/Fluid &#8211; These allow you to control how the portal is lit.<br \/>\n &#8211; onlyLightInOverworld &#8211; Only allow the portal to be used in the overworld to your destination of choice<br \/>\n &#8211; flatPortal &#8211; Flat Portal similar to the End or the Twilight Forest portal.<\/p>\n<p><\/br><\/br><br \/>\n<center><br \/>\n<font size=+2><b>Credits<\/font><\/b><\/p>\n<p>Based off the main Fabric mod HERE and an older ported mod HERE<br \/>\n<\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Forge port of Fabrics Custom Portal API, updated for newer versions of MC.<\/p>\n","protected":false},"featured_media":24522,"template":"","meta":{"_minecraft_slug":"custom-portal-api-reforged","_minecraft_project_id":"VepYPOdy","_minecraft_author":"AzureDoom","_minecraft_license":"MIT","_minecraft_downloads":111908,"_minecraft_follows":11,"_minecraft_client_side":"required","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"custom-portal-api-reforged.zip","_minecraft_size_bytes":1676712,"_minecraft_version_count":19,"_minecraft_updated_at":"2026-05-16T23:37:22.315347Z","_minecraft_date_created":"2023-08-21T05:25:04.890975Z","_minecraft_date_modified":"2025-11-28T20:43:53.777687Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/custom-portal-api-reforged","_minecraft_icon_attachment_id":24522,"_minecraft_imported_at":"2026-06-02T22:24:22+00:00","_minecraft_import_hash":"ca511975bfe57120bf6a4b4a0ebd6eb5","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[104,873,158],"mod_loader":[106,160],"minecraft_version":[36,60,94,102,37,40,78,79,82],"class_list":["post-52902","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-forge","mod_category-library","mod_category-neoforge","mod_loader-forge","mod_loader-neoforge","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-4","minecraft_version-1-20-6","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-9"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Custom Portal API Reforged - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Custom Portal API Reforged - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Forge port of Fabrics Custom Portal API, updated for newer versions of MC.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-portal-api-reforged\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-portal-api-reforged\\\/\",\"name\":\"Custom Portal API Reforged - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-portal-api-reforged\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-portal-api-reforged\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/azure-paxels-icon-1e026932468f5dc227444892b11cc5e06f1587a7.png\",\"datePublished\":\"2026-06-02T22:24:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-portal-api-reforged\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-portal-api-reforged\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-portal-api-reforged\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/azure-paxels-icon-1e026932468f5dc227444892b11cc5e06f1587a7.png\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/azure-paxels-icon-1e026932468f5dc227444892b11cc5e06f1587a7.png\",\"width\":400,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-portal-api-reforged\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Custom Portal API Reforged\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Custom Portal API Reforged - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/","og_locale":"en_US","og_type":"article","og_title":"Custom Portal API Reforged - Minecraft","og_description":"Forge port of Fabrics Custom Portal API, updated for newer versions of MC.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/","name":"Custom Portal API Reforged - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/azure-paxels-icon-1e026932468f5dc227444892b11cc5e06f1587a7.png","datePublished":"2026-06-02T22:24:20+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/azure-paxels-icon-1e026932468f5dc227444892b11cc5e06f1587a7.png","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/azure-paxels-icon-1e026932468f5dc227444892b11cc5e06f1587a7.png","width":400,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-portal-api-reforged\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Custom Portal API Reforged"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/52902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/24522"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=52902"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=52902"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=52902"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=52902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}