介绍
介绍由机器翻译自 Modrinth 原页面,仅供参考。
MatLib
一个供我的模组使用的跨平台、跨版本 Minecraft 共享库。
本地 Maven 构建
通过 MatLib 中的 publishMavenLocal 任务创建。
要将其作为 implementation 添加到其他项目中:
repositories {
mavenLocal()
}
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor(0, TimeUnit.SECONDS)
}
dependencies {
// Fabric
implementation("net.mat0u5:matlib-fabric-${prop("deps.minecraft")}:local-+")
// NeoForge
implementation("net.mat0u5:matlib-neoforge-${prop("deps.minecraft")}:local-+")
//Forge
implementation("net.mat0u5:matlib-forge-${prop("deps.minecraft")}:local-+")
}
常见问题
MatLib 支持哪些 Minecraft 版本?
MatLib 支持 Minecraft Java 版 1.20–26.3,共 24 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。
MatLib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
Mat0u5 的其他作品
查看全部 →Iceberg
by Mat0u5, Grend
一个模组开发库,包含全新的事件、辅助工具和实用功能,让模组开发更加轻松。
3781万
26 天前
Modrinth
Prism
by Mat0u5, Grend
一个专注于色彩的前置库!为依赖它的模组提供丰富的色彩相关功能。
1871万
1 个月前
Modrinth
Advancement Plaques
by Grend, Mat0u5
用更炫酷的效果替换那些无聊的进度弹窗。
1823万
1 个月前
Modrinth
Item Highlighter
by Grend, Mat0u5
高亮新拾取的物品。简单又方便。
1775万
1 个月前
Modrinth
评论
登录后评论和评分