Hocon Resource Loader

Hocon Resource Loader

Loading packs' files ending with `.hocon` as hocon format

by
2.8K Downloads
fabricforgequiltmanagementutility
Rent Server with this Mod

About this Mod

This mod is for using HOCON for resource packs or data packs
HOCON's syntax is more flexible and supports advanced syntax such as variables and include, which can reduce boilerplate code.
The mod will load any file in packs ends with .hocon with HOCON parser and trick the game to think it's a json file.
So that it shouldn't conflict with any packs that already use the json format.

Need to enable in pack.mcmeta lie below:

{
    "pack": {
        "pack_format": 15,
        "description": {
            "translate": "settingsun.pack",
            "fallback": "Assets of SettingSun"
        },
        "supported_formats": [15, 22]
    },
    "hoconresourceloader" : {
        "enabled": true
    }
}

Advantage of HOCON

  • include url, file (Can be used for resource/data pack config), minecraft resource by identifier
  • With include, you can include the origin json file and modify the value instead of edit the whole file. Far more convenient than the JsonPatch
  • See more on https://github.com/lightbend/config/blob/main/HOCON.md

Examples

The result of the resource pack at https://github.com/SettingDust/HoconResourceLoader/tree/main/mod/run/resourcepacks/test-resources

Credit

Icon from https://www.flaticon.com/free-icon/folder_3767084#

Available Versions

0.5.0release
MC 1.21fabric
June 19, 2024
0.4.0release
MC 1.20, 1.20.1fabric, forge, quilt
April 17, 2024
0.3.0release
MC 1.20, 1.20.1fabric, forge, quilt
April 16, 2024
0.2.7release
MC 1.20, 1.20.1fabric, forge, quilt
April 16, 2024
0.2.6release
MC 1.20, 1.20.1fabric, quilt
February 5, 2024

How to Install Hocon Resource Loader on Your Server

1

Order Server

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

2

Set fabric Loader

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

3

Install Mod

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

Compatibility

Mod Loaders

fabricforgequilt

Minecraft Versions

1.21, 1.20.1, 1.20

Server-side

~ Optional

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Hocon Resource Loader server crashes on startup – what to do?

Most common cause: wrong fabric 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.21). You can switch loaders with one click in the panel.

Is Hocon Resource Loader compatible with fabric and forge and quilt?

Hocon Resource Loader officially supports fabric, forge, quilt for Minecraft 1.21, 1.20.1, 1.20. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Hocon Resource Loader – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Hocon Resource Loader 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 Hocon Resource Loader 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
MIT License
Server-side
Optional

Supported Versions

1.211.20.11.20