Hocon Resource Loader
⚪ Last updated 2024⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
Preview

🔍 Analysis
- 👍 0.1% endorsement rate
- 🏆 #896 of 896 fabric mods in this game by downloads
📋 About This Mod
This mod is for using (https://github.com/lightbend/config) 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: ```json { "pack": { "pack_format": 15, "description": { "translate": "settingsun.pack", "fallback": "Assets of SettingSun" }, "supported_formats": }, "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 - https://github.com/SettingDust/HoconResourceLoader/blob/main/mod/run/resourcepacks/test-resources/assets/minecraft/models/item/stone.hocon ```hocon # 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") ``` !(https://raw.githubusercontent.com/SettingDust/HoconResourceLoader/main/docs/img.png) - https://github.com/SettingDust/HoconResourceLoader/blob/main/mod/run/resourcepacks/test-resources/assets/minecraft/models/item/dirt.hocon ```hocon parent: "minecraft:block/stone" ``` !(https://raw.githubusercontent.com/SettingDust/HoconResourceLoader/main/docs/img_1.png) - https://github.com/SettingDust/HoconResourceLoader/blob/main/mod/run/resourcepacks/test-resources/assets/minecraft/models/item/oak_log.hocon ```hocon # Support identifier include "minecraft:models/item/dirt.json" ``` !(https://raw.githubusercontent.com/SettingDust/HoconResourceLoader/main/docs/img_2.png) - https://github.com/SettingDust/HoconResourceLoader/blob/main/mod/run/resourcepacks/test-resources/assets/minecraft/models/item/oak_wood.hocon ```hocon # Will try to find under the starting path that passed to resource manager. # It's `models/` here include "minecraft:item/dirt.json" ``` !(https://raw.githubusercontent.com/SettingDust/HoconResourceLoader/main/docs/img_3.png) - https://github.com/SettingDust/HoconResourceLoader/blob/main/mod/run/resourcepacks/test-resources/assets/minecraft/models/item/torch.hocon ```hocon # 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" ``` !(https://raw.githubusercontent.com/SettingDust/HoconResourceLoader/main/docs/img_4.png) ## Credit Icon from https://www.flaticon.com/free-icon/folder_3767084#
📊 Mod Details
- Game
- Minecraft Mods
- Author
- settingdust
- Version
- 0.5.0
- Downloads
- 2,900
- Endorsements
- 4
- Category
- fabric
- Created
- 1/19/2024
- Updated
- 6/19/2024
- Game Versions
- 1.21
- Tags
- management, utility
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does Hocon Resource Loader support?
The author lists 1.21. Other versions may work but are untested by the author.
What is the latest version of Hocon Resource Loader?
Version 0.5.0, published 2024-06-19 with 2,900 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await