Be Proud API

模组

· 作者 Juniper

用于为“be proud”Minecraft 模组添加自定义旗帜的封装

0 本站下载 0 关注 更新于 3 年前

最新 0.1.0 · 1.20.1 · Fabric

一键开服(送7天)

Be Proud API

这是一个相对简单的 Be Proud 模组的 API 封装。你可以将其与 Be Proud 模组一起安装,并利用其基础架构来添加你自己的自定义旗帜!

请勿在此 GitHub 页面上提交关于原始 Be Proud 模组的问题——我不是 Be Proud 的原作者。

此模组需要安装 Be Proud 才能正常工作。

开发者文档

将模组添加到 build.gradle:

repositories { // 添加 Modrinth 的 maven
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies { // 将模组作为依赖项添加
    modImplementation "maven.modrinth:be-proud-api:DYeuzHlr" // 请确保将版本号更改为你想要的版本!
    modImplementation "maven.modrinth:be-proud:xOU4yztG" // 同时添加 be proud
}

现在要添加你的自定义旗帜,只需添加这一行代码:

public static final Flag TEST_FLAG = createFlag("test", false);

这将创建一个新旗帜,ID 为 "test" ——该旗帜并非 LGBT 旗帜,因此不会添加到书中(bool 值表示是否加入书籍)。

最后一步——你需要一些 JSON 文件。

resources/data/beproud/recipes/printer/test/large.json // 配方,来自模组作者的示例 - https://github.com/Duqueeee/be-proud/tree/1.20.1/src/main/resources/data/beproud/recipes/printer/lesbian
resources/data/beproud/recipes/printer/test/standard.json
resources/data/beproud/recipes/printer/test/small.json

现在你就拥有了你的旗帜!要添加纹理,它们应放在以下位置:

resources/assets/beproud/textures/block/flag/test/large.json // 纹理,来自模组作者的示例 - https://github.com/Duqueeee/be-proud/tree/1.20.1/src/main/resources/assets/beproud/textures/block/flag/trans
resources/assets/beproud/textures/block/flag/test/standard.json
resources/assets/beproud/textures/block/flag/test/small.json

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源