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

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.
常见问题
OpenPortals 支持哪些 Minecraft 版本?
OpenPortals 支持 Minecraft Java 版 1.21.11–26.3,共 4 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
OpenPortals 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
AnonymousHacker1279 的其他作品
查看全部 →Immersive Weapons
Immersive Weapons is more than just a weapons mod aiming to spice up your combat skills.
Immersive Weapons
Immersive Weapons is more than just a weapons mod aiming to spice up your combat skills.
Immersive Weapons
Immersive Weapons is more than just a weapons mod aiming to spice up your combat skills.
Immersive Weapons Compatibility Bridge
The Immersive Weapons Compatibility Bridge adds compatibility to several mods.
评论
登录后评论和评分