
A simple-to-use library for implementing custom dimension portals.
OpenPortals is a lightweight library mod that makes it easy to create custom portals. It's ideal for Jar-in-Jar purposes.
Setup
To use OpenPortals in your mod, add it as a dependency in your build.gradle file:
repositories {
maven {
name "AnonymousHacker1279"
url "https://maven.anonymoushacker1279.tech/releases"
}
}
dependencies {
implementation "tech.anonymoushacker1279.openportals:OpenPortals:<version>"
}
The latest version can be found in the releases section of the repository.
Usage
Creating a portal can be done in a single step during mod setup, for example:
@SubscribeEvent
public static void onCommonStartUp(FMLCommonSetupEvent event) {
new CustomPortalBuilder()
.frame(Blocks.GLOWSTONE)
.destination(Identifier.withDefaultNamespace("the_nether"))
.lightWithFluid(Fluids.WATER)
.tintColor(255, 0, 255)
.build();
}
All portal builder methods are documented, so refer to the Javadocs for additional information.
License
OpenPortals is MIT licensed.
How to Install OpenPortals (Mod)
OpenPortals by AnonymousHacker1279 is verified for Neoforge across Minecraft versions 1.21.11, 26.1.2, 26.2, 26.3 (latest release: v1.4.0, file size: 161 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.11, 26.1.2, 26.2, 26.3) and platform (Neoforge).
- Make sure you have the compatible loader or environment installed for Neoforge.
- Move the downloaded OpenPortals file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add VersionThere are no user-facing changes under the API package.
### Improvements
- Improved portal linking storage efficiency; now uses bidirectional links instead of storing duplicate entries
- Optimized portal frame validation logic for better performance
- Improved portal block caching to reduce redundant lookups
- Added automatic cleanup of orphaned/invalid portal links on server shutdown
- Better null safety throughout the codebase
### Bugfixes
- Fixed portal blocks missing tint indices
- Fixed potential memory leaks from orphaned dimension links