Download Ducky Updater Lib — Minecraft Mods — MetaMods
Ducky Updater Lib

Ducky Updater Lib

Active

Downloads

0

Last update

4 months ago

Versions

1.13 — 1.21.8
Client
Fabric
Libraries
Control
Utils

Ducky Updater Lib

Logo

About the Library

Ducky Updater Lib provides a simple way to check for mod updates through the Modrinth platform.

Adding Dependency

build.gradle.kts

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

dependencies {
    // Option 1: Include Ducky Updater in project for availability within your own jar file (additional ~17kb)
    include(modImplementation("maven.modrinth", "ducky-updater-lib", "<version>"))

    // Option 2: Depend on Ducky Updater, but requires manual installation by users
    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": {
      // Modrinth mod ID from project page
      "modrinthId": "mWxGwd3F",
      // Optional (release, beta, alpha)
      // Default: release
      "type": "release",
      // Optional (true, false)
      // Default false
      "featured": false
    }
  },
}

For versions 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
        );
    }
}
Project members
syorito-hatsuki

syorito-hatsuki

Developer

DuckyHatsu

DuckyHatsu

Created: 10 Feb 2023

ID: 4298