Minecraft Version Loader

Minecraft Version Loader

Simple library/utility to find the Minecraft version in code universally whatever is the Minecraft version.

by
1.1K Downloads
fabriclibraryutility
Rent Server with this Mod

About this Mod

Minecraft Version Loader

What is it?

The Minecraft Version Loader is a straightforward library/utility mod designed to offer a consistent API across all Minecraft versions. Its main purpose is to conveniently retrieve the exact version of Minecraft being used.

But why?

This mod serves a crucial role in situations where a universal mod is required to function across all Minecraft versions, while also needing to identify the specific version of Minecraft it's running on. This information is essential for determining which code should be loaded for each precise Minecraft version within the mod's codebase.

Important

This mod is currently in its early release stage, and it has been tested and confirmed to support Minecraft versions ranging from 1.18 to 1.20.1. While it is possible that the mod may work with other versions, if you encounter any issues, please create a ticket on the GitHub issue page.

How to use it?

  1. Retrieve the mod from the Maven Central repository using the following code snippet in your Gradle build script:
dependencies {
    modImplementation "lv.cebbys.mcmods:minecraft-version-loader:${version}"
}
  1. Import the necessary classes and call the method as shown below:
import lv.cebbys.mcmods.mvl.api.MinecraftVersionLoader;
import lv.cebbys.mcmods.mvl.dto.MinecraftVersion;

public void () {
    MinecraftVersion version = MinecraftVersionLoader.getMinecraftVersion();
    // Prepare things with the version how you like - burned, medium, raw
}

Available Versions

[Fabric] Minecraft Version Loader 1.0.0alpha
MC 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1fabric
June 12, 2023

How to Install Minecraft Version Loader on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Minecraft Version Loader". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.20.1, 1.20, 1.19.4 (+7 more)

Server-side

~ Optional

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Minecraft Version Loader server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.

Is Minecraft Version Loader compatible with fabric?

Minecraft Version Loader officially supports fabric for Minecraft 1.20.1, 1.20, 1.19.4. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Minecraft Version Loader – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Minecraft Version Loader consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Minecraft Version Loader with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Creative Commons Zero v1.0 Universal
Server-side
Optional

Supported Versions

1.20.11.201.19.41.19.31.19.21.19.11.191.18.21.18.11.18