HomeJavaModsResourceLib
ResourceLib

This plugin does nothing on its own!!

📦 ResourceLib

ResourceLib is a lightweight Spigot/Paper plugin library that allows other plugins to dynamically register resource pack files at startup. It generates and serves a custom ZIP pack over HTTP and automatically sends it to players using Minecraft’s native setResourcePack() API — no manual file hosting required.


✨ Features


🧩 Usage

1. Install

Gradle (Kotlin DSL):

repositories {
    mavenCentral()
    maven { url = uri("https://jitpack.io") }
}

dependencies {
    implementation("com.github.Bogieloo:ResourceLib:v1.0")
}

Maven:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.github.Bogieloo</groupId>
        <artifactId>ResourceLib</artifactId>
        <version>v1.0</version>
    </dependency>
</dependencies>

2. Register Your Resources

In your plugin’s onEnable():

@Override
public void onEnable() {
    // Register a single file
    ResourcePackManager.getInstance().registerResource(
        "assets/minecraft/models/item/custom_sword.json",
        new File(getDataFolder(), "custom_sword.json"),
        false
    );

    // Register a whole folder (e.g., src/main/resources/tanks/)
    ResourcePackManager.getInstance().registerResourceEntry(this, "tanks", true);
}

3. Install ResourceLib on the Server


Made with ❤️ by devs for devs.

ko-fi

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.

Verified by MCModsHub

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

Explore more