What are you searching for?

OpenPortals

OpenPortals

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

download 20 Downloads · favorite 0 Followers · Updated 1 month ago
Library Neoforge 1.21.11

Versions

inventory_2
OpenPortals - v1.0.0

v1.0.0 · 1 month 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 135.0M
favorite 27,864
Library
Cloth Config API
Cloth Config API

by shedaniel

Configuration Library for Minecraft Mods

download 98.8M
favorite 13,844
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 69.5M
favorite 7,721
Library
Architectury API
Architectury API

by shedaniel

An intermediary api aimed to ease developing multiplatform mods.

download 63.8M
favorite 6,741
lock Cookie consent

SkinMC uses cookies to provide functionality and features.