OpenPortals 图标

OpenPortals

作者:rebot | 分类:模组

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

Minecraft 版本: 26.1.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.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Fear me! (not)

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

查看详情
VanillaMinimaps

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

查看详情
bart eat my life

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

查看详情
Pearl Trail

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

查看详情