Ducky Updater Lib
描述
一个简单的库,用于从 Modrinth 检查模组更新。
添加依赖
build.gradle.kts
repositories {
maven {
url = "https://api.modrinth.com/maven"
}
}
dependencies {
// 选项 1:将 Ducky Updater 包含到项目中,使其在你自己的 jar 包中可用(额外约 17kb)
include(modImplementation("maven.modrinth", "ducky-updater-lib", "<version>"))
// 选项 2:依赖 Ducky Updater,但要求用户手动安装它
modImplementation("maven.modrinth", "ducky-updater-lib", "<version>")
}
fabric.mod.json
{
"depends": {
"fabricloader": "*",
...
// 同时在你的 fabric.mod.json 中添加依赖
"ducky-updater": "*"
}
}
用法
fabric.mod.json
{
"custom": {
...
"duckyupdater": {
// 来自项目页面的模组 Modrinth ID
"modrinthId": "mWxGwd3F",
// 可选(release, beta, alpha)
// 默认值:release
"type": "release",
// 可选(true, false)
// 默认值 false
"featured": false
}
},
}
2023.7.1 版本之前
public class ModName implements ModInitializer {
@Override
public void onInitialize() {
DuckyUpdater.checkForUpdate(
"modrinthId",
"modId",
"alpha", // 可选!默认为 release
true // 可选!默认为 true
);
}
}
Ducky Updater Lib
Description
Simple library for checking mod updates from Modrinth
Adding the dependency
build.gradle.kts
repositories {
maven {
url = "https://api.modrinth.com/maven"
}
}
dependencies {
// Option 1: Include Ducky Updater to project for it available within your own jar (additional ~17kb)
include(modImplementation("maven.modrinth", "ducky-updater-lib", "<version>"))
// Option 2: Depend on Ducky Updater, but require that users install it manually
modImplementation("maven.modrinth", "ducky-updater-lib", "<version>")
}
fabric.mod.json
{
"depends": {
"fabricloader": "*",
...
// Also add dependency in your fabric.mod.json
"ducky-updater": "*"
}
}
Usage
fabric.mod.json
{
"custom": {
...
"duckyupdater": {
//Mod modrinth ID from project page
"modrinthId": "mWxGwd3F",
// Optional (release, beta, alpha)
// Default: release
"type": "release",
// Optional (true, false)
// Default false
"featured": false
}
},
}
Before 2023.7.1
public class ModName implements ModInitializer {
@Override
public void onInitialize() {
DuckyUpdater.checkForUpdate(
"modrinthId",
"modId",
"alpha", // Optional! Default release
true // Optional! Default true
);
}
}
版本游戏版本平台发布时间本站下载
正式版
2026.6.1
Ducky Updater Lib 2026.6.1
26.326.2 Fabric 5 个月前 ·
1
26.3
26.2
Fabric
5 个月前
1
下载 Ducky Updater Lib
正式版
2026.3.1
Ducky Updater Lib 2026.3.1
26.1.226.1.1 Fabric 7 个月前 ·
0
26.1.2
26.1.1
26.1
Fabric
7 个月前
0
下载 Ducky Updater Lib
版本:2026.3.1
游戏版本:26.1.2、26.1.1、26.1
平台:Fabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
2026.1.1
Ducky Updater Lib 2026.1.1
1.21.111.21.10 Fabric 10 个月前 ·
1
1.21.11
1.21.10
1.21.9
Fabric
10 个月前
1
下载 Ducky Updater Lib
版本:2026.1.1
游戏版本:1.21.11、1.21.10、1.21.9
平台:Fabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
2025.10.1
Ducky Updater Lib 2025.10.1
1.21.111.21.10 Fabric 1 年前 ·
0
1.21.11
1.21.10
1.21.9
Fabric
1 年前
0
下载 Ducky Updater Lib
版本:2025.10.1
游戏版本:1.21.11、1.21.10、1.21.9
平台:Fabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
2025.6.1
Ducky Updater Lib 2025.6.1
1.21.81.21.7 Fabric 1 年前 ·
0
1.21.8
1.21.7
1.21.6
Fabric
1 年前
0
下载 Ducky Updater Lib
版本:2025.6.1
游戏版本:1.21.8、1.21.7、1.21.6
平台:Fabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
2025.3.1
Ducky Updater Lib 2025.3.1
1.21.5 Fabric 1 年前 ·
1
1.21.5
Fabric
1 年前
1
下载 Ducky Updater Lib
正式版
2024.10.2
Ducky Updater Lib 2024.10.2
1.21.41.21.3 Fabric 2 年前 ·
0
1.21.4
1.21.3
1.21.2
1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20
Fabric
2 年前
0
下载 Ducky Updater Lib
版本:2024.10.2
游戏版本:1.21.4、1.21.3、1.21.2 等
平台:Fabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
2024.10.1
Ducky Updater Lib 2024.10.1
1.21.31.21.2 Fabric 2 年前 ·
0
1.21.3
1.21.2
1.21.1
1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20
Fabric
2 年前
0
下载 Ducky Updater Lib
版本:2024.10.1
游戏版本:1.21.3、1.21.2、1.21.1 等
平台:Fabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
2023.10.1
Ducky Updater Lib 2023.10.1
1.21.11.21 Fabric 3 年前 ·
0
1.21.1
1.21
1.20.6
1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20
Fabric
3 年前
0
下载 Ducky Updater Lib
版本:2023.10.1
游戏版本:1.21.1、1.21、1.20.6 等
平台:Fabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
2023.7.2
Ducky Updater Lib 2023.7.2
1.20.21.20.1 Fabric 3 年前 ·
0
1.20.2
1.20.1
1.20
Fabric
3 年前
0
下载 Ducky Updater Lib
版本:2023.7.2
游戏版本:1.20.2、1.20.1、1.20
平台:Fabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
2026.6.1
正式版
2026-06-21
- 已更新至 26.2
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
Woot Revived
pharuxtan
一个用于收集生物掉落物的多区块模组。
生物科技
352
模组
玉Jade ?
Snownee
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
实用前置
344
模组
Xaero的小地图
thexaero
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
冒险交通
242
模组
物品管理器Just Enough Items (JEI)
mezz
查看物品与配方
前置实用
240
模组
KubeJS
Lat
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
前置实用
239
模组
Applied Energistics 2
shartte
AE2:一款流行的自动化与存储模组
存储科技
217
评论 0
登录后参与评分
还没有评论,来抢沙发吧