What are you searching for?

OpenPortals

OpenPortals

A simple-to-use library for implementing custom dimension portals.

download 20 Downloads · favorite 0 Followers · Updated 2 weeks ago
Library Neoforge 1.21.11

Versions

inventory_2
OpenPortals - v1.0.0

v1.0.0 · 2 weeks ago · 81.86 KB

Release download
Neoforge 1.21.11

About

Logo

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.

open_in_new View on Modrinth
Categories
Compatibility
Client: Required Server: Required
gavel MIT

Conversation

What are your thoughts?

Related projects

Library
Fabric API
Fabric API

by modmuss50

Lightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.

download 128.4M
favorite 27,401
Library
Cloth Config API
Cloth Config API

by shedaniel

Configuration Library for Minecraft Mods

download 94.4M
favorite 13,670
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 66.1M
favorite 7,607
Library
Architectury API
Architectury API

by shedaniel

An intermediary api aimed to ease developing multiplatform mods.

download 61.0M
favorite 6,652
lock Cookie consent

SkinMC uses cookies to provide functionality and features.