CurseForge · Minecraft mod
Hocon Resource Loader
Loading packs' files ending with `.hocon` as hocon format
Quick answer
Which Hocon Resource Loader release matches 1.20.1 Forge?
Hocon Resource Loader 0.4.0 targets 1.20.1, 1.20 with Fabric, Forge, Quilt. The project page does not say whether this file belongs on the client, dedicated server, or both. 1 required mod needs a matching file.
Where it goes
Is Hocon Resource Loader required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Hocon Resource Loader 0.4.0 need?
0.4.0 on 1.20.1 Forge. Every mod below is checked against that same setup.
Install Fabric Language Kotlin, Sinytra Connector, Forgified Fabric API, project Ha28R6CL and 1 more first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match. 15 come through another mod in the chain.
15 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Hocon Resource Loader without breaking your instance.
Built for Hocon Resource Loader 0.4.0 on 1.20.1 Forge. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 0.4.0. It targets 1.20.1, 1.20 with Fabric, Forge, Quilt; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric Language Kotlin, Sinytra Connector, Forgified Fabric API, project Ha28R6CL and 1 more first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match. 15 come through another mod in the chain.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside 0.4.0. It opens that exact file at the source.
About this project
What does Hocon Resource Loader add?
Code block format is broken on CF. Please read on Modrinth or Github
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.
Advantage of HOCON
includeurl, 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
-
# The current directory to read file relative is minecraft run dir. # `.minecraft` or `.minecraft/versions/{NAME}` dir in commonly # At here is `{PROJECT_DIR}/mod/run` include file("dirt.hocon")
-
parent: "minecraft:block/stone"
-
# Support identifier include "minecraft:models/item/dirt.json"
-
# Will try to find under the starting path that passed to resource manager. # It's `models/` here include "minecraft:item/dirt.json"
-
# Specifically, include json files won't be resolved to hocon. # So, you can do patch for the json file and provide the hocon file as json to the game. include "minecraft:models/item/torch.json" textures.layer0 = "minecraft:block/soul_torch"
Credit
Icon from https://www.flaticon.com/free-icon/folder_3767084#
Project description from CurseForge.
Pick your setup
Hocon Resource Loader by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21
1 loader build1.20.1
3 loader builds1.20
3 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Hocon Resource Loader versions and loaders
0.4.0
HoconResourceLoader-0.4.0+sha.5129ee3.jar
17 Apr 2024
0.3.0
HoconResourceLoader-0.3.0+sha.f310962.jar
16 Apr 2024
0.2.7
HoconResourceLoader-0.2.7+sha.6d9dadf.jar
16 Apr 2024
Looking for an older file? The official CurseForge project page is in Resources.