Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_mWxGwd3F.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Ducky Updater Lib - 墨喵 Minecraft 资源
Ducky Updater Lib 图标

Ducky Updater Lib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 2026.6.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/ducky-updater-lib
资源信息

Minecraft 版本: 26.2

平台: fabric

标签: library management utility

资源介绍

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 ```java public class ModName implements ModInitializer { @Override public void onInitialize() { DuckyUpdater.checkForUpdate( "modrinthId", "modId", "alpha", // Optional! Default release true // Optional! Default true ); } } ```
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Corals To Dyes

价格:0 墨喵币
下载量:0

查看详情
Lavacastling

价格:0 墨喵币
下载量:0

查看详情
Vanilla Core

价格:0 墨喵币
下载量:0

查看详情
OP passive mobs

价格:0 墨喵币
下载量:0

查看详情