跳到正文

Blueprint

实现了所有Abnormals模组框架的前置库!

收藏

截图

介绍

介绍由机器翻译自 Modrinth 原页面,仅供参考。

Website
Discord
X
Patreon

📖 简介:

Blueprint 是一个模组前置库,旨在让访问大多数 Team Abnormals 模组之间共享的代码变得更加容易,但任何人都可以并且鼓励使用它!它拥有许多有价值的功能,例如注册表辅助工具、数据同步、各种数据驱动的修改系统、生物群系 API、盔甲纹饰材质 API、Endimator 动画 API 等等!

💻 致开发者:

将 Blueprint 添加到你的模组中非常简单!

首先,你需要将 Blueprint 添加为依赖项,以便在代码中访问该前置库。为此,请将以下内容添加到你的 build.gradle 中:

repositories {
    maven {
        url = "https://maven.teamabnormals.com"
    }
}

dependencies {
    implementation("com.teamabnormals:blueprint:<version>")
}

将 <version> 替换为所需的 Blueprint 版本,包括所需的 Minecraft 版本。

例如,1.21.1-8.0.0 会生成 blueprint-1.21.1-8.0.0.jar。

接下来,你必须在 NeoForge 中将其添加为依赖项,以便你的模组在加载时要求 Blueprint。在你的 neoforge.mods.toml 中,将以下代码块添加到文件中:

[[dependencies.<modId>]]
    modId = "blueprint"
    type = "required"
    versionRange = "[<version>,)"
    ordering = "AFTER"
    side = "BOTH"

将 <version> 替换为所需的 Blueprint 版本。
例如,8.0.0 将指向 Blueprint 的 8.0.0 版本。
上面针对 neoforge.mods.toml 文件的代码块会指向所选版本及任何后续版本。如果你想以不同方式指定目标版本,可能需要阅读 neoforge.mods.toml 规范。




















评论

登录后评论和评分

Team Abnormals 的其他作品

查看全部 →