
一个易于使用的库,用于实现自定义维度传送门。
OpenPortals 是一个轻量级的库模组,可轻松创建自定义传送门。它非常适合 Jar-in-Jar 用途。
设置
要在你的模组中使用 OpenPortals,请在 build.gradle 文件中将其添加为依赖项:
repositories {
maven {
name "AnonymousHacker1279"
url "https://maven.anonymoushacker1279.tech/releases"
}
}
dependencies {
implementation "tech.anonymoushacker1279.openportals:OpenPortals:<version>"
}
最新版本可以在仓库的 releases 部分找到。
用法
在模组设置期间,可以通过单个步骤创建传送门,例如:
@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();
}
所有传送门构建器方法均有文档记录,有关更多信息请参阅 Javadocs。
许可证
OpenPortals 采用 MIT 许可。

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
下载 OpenPortals
下载 OpenPortals
下载 OpenPortals
下载 OpenPortals
此版本更新到 MC 26.3。API 表面未发生变化。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧