Перейти к содержимому
Mineforgian

Ducky Updater Lib

Simple library for checking mod updates from modrinth

Загрузки
15K
Подписчики
82
Обновлён
20 июня 2026 г.
Лицензия
MIT

Опубликован 8 февраля 2023 г.

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
        );
    }
}

Центр версий

3 из 20

1Версия Minecraft

2Загрузчик

  • Релиз18 КБ
  • Релиз21 КБ
  • Релиз21 КБ

Ченджлог

2026.6.1Релиз26.2 · 20 июня 2026 г.
  • Updated to 26.2
2026.3.1Релиз26.1, 26.1.1, 26.1.2 · 30 марта 2026 г.
  • Updated to 26.1
    • Switched from Yarn to Mojmaps
2026.1.1Релиз1.21.9, 1.21.10, 1.21.11 · 27 января 2026 г.
  • Removed annoying log (:
2025.10.1Релиз1.21.9, 1.21.10, 1.21.11 · 7 октября 2025 г.
  • Updated to 1.21.9
    • Fixed wrong thread issue
2025.6.1Релиз1.21.6, 1.21.7, 1.21.8 · 17 июня 2025 г.
  • Updated to 1.21.6
2025.3.1Релиз1.21.5 · 26 марта 2025 г.
  • Updated to 1.21.5
2024.10.2Релиз1.21.2, 1.21.3, 1.21.4 · 29 октября 2024 г.
  • Fixed IndexOutOfBoundsException and JsonSyntaxException
2024.10.1Релиз1.21.1, 1.21.2, 1.21.3 · 28 октября 2024 г.
  • Fixed a year-old bug
  • Fixed crash on 1.21.2+

Комментарии

Загружаем…