Home›Java›Mods›Auto Updater
Auto Updater
ModsJava

Auto Updater

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by the-sgg-yt · on Modrinth

⬇ Download on Modrinth
Auto Updater — screenshot 1Auto Updater — screenshot 2Auto Updater — screenshot 3Auto Updater — screenshot 4

The Auto Updater logo

WARNING: This mod currently supports Windows PCs only, due to it using the %APPDATA% file path. This mod will almost certainly crash or behave unpredictably on Linux / macOS machines.

Introduction

Hello! This is a mod I made to solve the issue of having to install 30+ mods manually every time something updated. Well, now you don't have to worry about that! Enter Auto Updater: a simple yet extremely useful mod to update all of your mods for you at the click of a button! (See "How do I install these updated mods?" for information on where they get downloaded to.)

Dependencies

Info for Modrinth reviewers

If you are a moderator reviewing this project and the project has not yet been released, please rename the mod jar file to "auto-updater_IGNORE.jar". Thank you! This mod should also be tested alongside other mods that can be updated.

What it does

When you press Q (or another custom key), a window opens up which asks you if you would like to update your mods.

Choosing "yes" will automatically download the newest versions of all of your mods.

If an updated version is not found (for instance, if your mod was downloaded on Curseforge), Auto Updater will simply move the mod without changes to the updated folder.

How do I install these updated mods?

If you would like any mod in your mods folder to be ignored, append _IGNORE to the end of the file name (e.g. sodium_IGNORE.jar).

After all mods are downloaded, navigate to the %APPDATA%.minecraft\mods folder. (can also be styled as C:\Users[your user]\AppData\Roaming.minecraft\mods)

Then, move all your previous mods to a backup folder and move all files in the subfolder updated into the main mods folder. Once you are happy it all works, you can delete the old mods if you want.

It is completely safe to delete the updated folder.

(All of the above is outlined in the mod GUI, but I thought it would be good to paste it here anyways.)

Images

A prompt on-screen asking if the user wants to update their mods

Go to the gallery for more images!

Coming soon

Some features that will come soon include:

Links

My GitHub repository for this mod

Found an issue? Report it!

How this mod works

This section applies for versions v1.3.0 onwards.

This mod primarily uses the free Modrinth API in order to get the files for the mods. It uses the Java HttpClient library to achieve this.

(These steps are repeated for each file in your mods directory)

Step 1: The mod gets the SHA-512 hash of the file and uses it with the "Get Latest Version from File Hash" API on Modrinth (https://api.modrinth.com/v2/version_file/{hash}/update)

Step 2: The mod finds the first file in the files section of the JSON (multiple files are not supported yet, though they don't seem to be common) and gets the url data.

Step 3: Then, the mod downloads the JAR from the URL and places it inside the updated folder in your mods directory.

Step 4: If the file hash does not match with the expected hash, the file is downloaded again. When the hashes do match, the program moves on to the next file and repeats these steps.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more