ResourceLib 图标

ResourceLib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/resourcelib
资源信息

Minecraft 版本: 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7

平台: paper purpur spigot

标签: library

资源介绍

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

  • ? Merge JSON models, textures, and more from multiple plugins
  • ? Hosts the resource pack with an embedded HTTP server (no config needed!)
  • ? JSON merging with conflict resolution (as configured!)

    ? Usage

    1. Install

    Gradle (Kotlin DSL):

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

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

### Maven:
```xml
<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

  • Drop the ResourceLib JAR into the plugins/ folder.
  • Make sure port 61234 is open to all players!
  • Enjoy!

    Made with ❤️ by devs for devs.

ko-fi

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Statis' Better Mycelium Particles

价格:0 墨喵币
下载量:0

查看详情
[AI slop] Polymer Patch for Guard Villagers

价格:0 墨喵币
下载量:0

查看详情
Undopia Zombie Skins

价格:0 墨喵币
下载量:0

查看详情
Flat Hotbar

价格:0 墨喵币
下载量:0

查看详情