Download DynRes — Minecraft Mods — MetaMods

DynRes

Active

Downloads

0

Last update

3 months ago

Versions

1.16.4 — 1.21.8
Server
Fabric
Utils

DynRes

DynRes is a Minecraft server modification that integrates a web server to directly serve resource packs from the server directory. The mod automatically configures the server to specify this pack as the default resource pack, overwriting the relevant parameters in the server.properties file.

Main Features

You can flexibly configure the port for the web server, specify the exact file to host, and determine whether to provide a hash sum in the configuration.

Setup and Usage

To use the mod, you need to place your resource pack in the specified directory (default: server/resources.zip) and configure the baseLink parameter in the configuration to your public address that players will use to connect.

It's important to note that DynRes only needs to be installed on the server. When installed on the client version, the mod will only log information about server connections.

Configuration

The resource pack hosting functionality in DynRes is provided by the common library libjf-web-v1, so the main hosting settings are configured there.

If you want to use the same port as Minecraft, libjf-web-v1 delegates connection handling logic to the libjf-mainhttp-v0 library. This results in configuration being distributed across two files, with libjf-web providing additional features not directly related to DynRes.

Recommended Setup

The resourcesFile parameter in DynRes should contain the relative path to the resource pack that will be served.

The hashResources option provides clients with a checksum for caching packs, which improves performance. In older versions, this prevented the pack from being changed while the server was running, but this issue has now been fixed.

For hosting the pack on the same port as the game (recommended and simple setup option):

  • Set the port and portOverride parameters in the libjf-web configuration to -1
  • Configure serverIp to the address that players will use to connect to your Minecraft server
  • The port is added automatically, but if necessary, it can be configured via portOverride

When starting the server, a message will appear in the log: "Initialized DynRes at http://your_address:port/resources.zip". Check the file availability through a browser to confirm proper setup.

Project members
JFronny

JFronny

Developer

Created: 12 Dec 2020

ID: 7781