QDResLoader

QDResLoader

A dead-simple resource loader that reuses existing functionality.

by
14.8K Downloads
quiltutility
Rent Server with this Mod

About this Mod

So, you know how there's this really nice, battle-tested, and fast resource loading system in QSL? It's used for every mod. Wouldn't it be great if we could just reuse that, instead of needing a bloated Architectury-requiring overengineered mess that breaks when you so much as breathe on it?

That's what this is. 1.0 is 10 lines of Java code, including formatting:

new File("resources").mkdirs();
for (var t : ResourceType.values()) {
    ResourceLoader.get(t).getRegisterTopResourcePackEvent().register((ctx) -> {
        ctx.addResourcePack(new ModNioResourcePack(
            "QDResLoader resources", mod.metadata(), null, ResourcePackActivationType.ALWAYS_ENABLED,
            new File("resources").toPath(), t, null
        ));
    });
}

Since 1.0, some more features have been added to make it nicer to use and have some extra functionality, but it's still tiny regardless; just not "put the whole mod in your description" levels of tiny.

Harness the power of QSL Resource Loader in the resources directory. You already know the format; data goes in data, assets go in assets. Maybe you've got some zips you don't want to extract, maybe since you're managing them with Packwiz to update packs someone else manages? Cool, drop them in packs.

On first run, a QDResLoader-README.txt file will be dropped into resources to give you a quick explainer on how to use the mod. Here's what it says:

This directory is created and handled by QDResLoader. You can delete this README
once any of the following things exist.

This directory itself is loaded as a datapack and resourcepack, so any pack.mcmeta
will be considered (using a default provided by QSL if not present) and any data in
"data", as well as resources in "assets" on the client, will be loaded.

You may also create a "packs" directory, and put directories, zips, or jars in there
that will all be loaded as packs. For organization purposes, you may also create a
"datapacks" or "resourcepacks" directory -- packs in those directories will only be
loaded as one type instead of both.

The resources in the main directory cannot be disabled by users, but will be visible
in the "Resource Packs" and "Data Packs" menu, and can be reordered. Packs in all
three pack directories can be disabled as the user pleases, but are all enabled by
default.

Jars are recognized as packs so you can take "datapack-as-mod" JARs and drop them
here instead of in mods, if that's something you would like to do.

Available Versions

2.0.1release
MC 1.19.4, 1.20, 1.20.1quilt
July 6, 2023
2.0 (19.4)release
MC 1.19.4quilt
March 27, 2023
2.0release
MC 1.19.2quilt
January 15, 2023
1.2.2release
MC 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1quilt
December 26, 2022
1.2.1release
MC 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1quilt
December 26, 2022

How to Install QDResLoader on Your Server

1

Order Server

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

2

Set quilt Loader

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

3

Install Mod

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

Compatibility

Mod Loaders

quilt

Minecraft Versions

1.20.1, 1.20, 1.19.4 (+6 more)

Server-side

~ Optional

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

QDResLoader server crashes on startup – what to do?

Most common cause: wrong quilt 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 QDResLoader compatible with quilt?

QDResLoader officially supports quilt for Minecraft 1.20.1, 1.20, 1.19.4. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with QDResLoader – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if QDResLoader 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 QDResLoader 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.21.19.11.191.18.21.18.11.18