Skip to content

jimchen5209/ServerResourcePackManager

Repository files navigation

Server ResourcePack Manager

Multi Server ResourcePack Manager from Galaxy Proxy on OKTW Network, but for a single dedicated server.

Features

  • Multi ResourcePack introduced in 1.20.3 is supported
  • Automatic calculation of ResourcePack hash
  • Simple configuration file
  • Reload command to update ResourcePacks without server restart
  • Send command to re-apply ResourcePacks to player(s)

Installation

  1. Install Fabric modloader on your Minecraft server.
  2. Install Fabric API and Fabric Language Kotlin.
  3. Install the mod from Releases or Modrinth.
  4. Start server to generate config

Configuration

The configuration file is located at config/server-resource-pack-manager.json. You can add multiple ResourcePacks by specifying their URL.

Name Description Default
autoSend Automatically send ResourcePack(s) on player join true
promptMessage Message displayed to players when prompting for ResourcePack(s) ""
required Whether to enforce server ResourcePack(s) false
resourcePacks List of ResourcePack URLs []

Multi ResourcePack

The order of ResourcePacks in the list determines the order they are applied.

The first ResourcePack will be applied first, followed by the second, and so on. If there are duplicate ResourcePack keys, the first occurrence takes precedence.

Example

{
  "autoSend": true,
  "promptMessage": "",
  "required": false,
  "resourcePacks": [
    "https://path/to/resourcepack1.zip",
    "https://path/to/resourcepack2.zip"
  ]
}

In this example, resourcepack1.zip will be applied first, followed by resourcepack2.zip.

Applied resource packs will be shown in the in-game settings menu in this order.

Commands

  • /resourcePackManager reload - Reload the configuration file and update ResourcePacks.
  • /resourcePackManager send [player] - Re-apply ResourcePacks to the specified player, or yourself if no player is specified.

Development

Recommended IDE: IntelliJ IDEA

This mod is developed using Fabric modding framework and Kotlin.

To build the mod, use the Gradle wrapper:

./gradlew build

About

Multi Server ResourcePack Manager for Minecraft dedicated server.

Resources

License

Stars

Watchers

Forks

Contributors

Languages