Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_gENo9K7n.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
OpenPortals - 墨喵 Minecraft 资源
OpenPortals 图标

OpenPortals

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 v1.3.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/openportals
资源信息

Minecraft 版本: 26.2

平台: neoforge

标签: library

资源介绍

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.

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Create Aeronautics Ukrainian Translation

价格:0 墨喵币
下载量:0

查看详情
Todo List

价格:0 墨喵币
下载量:0

查看详情
Just A Structure Mod

价格:0 墨喵币
下载量:0

查看详情
ThirdLife

价格:0 墨喵币
下载量:0

查看详情