|
|
《自豪API》 (Be Proud API)Github |相关wiki |源站链接支持: fabric这是一个相对简单的API包装器,用于【自豪】(
请不要在此GitHub页面上发布与原始模组相关的问题 - 我不是自豪的原始作者。
此模组需要安装自豪才能工作。
开发者文档
要将该模组添加到build.gradle中:
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\" // 也添加自豪
}
现在要添加您的自定义旗帜,只需添加这行代码
java
public static final Flag TEST_FLAG = createFlag(\"test\", false);
这将创建一个新的旗帜,其ID为\"test\" - 该旗帜不是LGBT旗帜,因此不会添加到书中(bool值)
最后,您需要一些json文件。
java
resources/data/beproud/recipes/printer/test/large.json // 配方,来自模组作者的示例 - 链接
resources/data/beproud/recipes/printer/test/standard.json
resources/data/beproud/recipes/printer/test/small.json
现在您有了您的旗帜!要添加纹理,它们应该放在:
java
resources/assets/beproud/textures/block/flag/test/large.json // 纹理,来自模组作者的示例 - 链接
resources/assets/beproud/textures/block/flag/test/standard.json
resources/assets/beproud/textures/block/flag/test/small.json
来自Modrinth所有游戏版本1.20.1所有类型fabricBe Proud API 0.1.0Minecraft-Be-Proud-API-0.1.0.jar下载0.1.0#ReleaseFirst release. Requires version 0.1.0 of be proud.展开版本: 0.1.0支持游戏: 1.20.1类型:FabricRelease下载次数: 208全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
《自豪API》 |
楼主
2025-8-10 16:50:31
回复(0)
收起回复
|