Hocon Resource Loader

Hocon Resource Loader

Mod

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

Client or server ManagementUtility

395 downloads
4 followers
Created4 months ago
Updateda month ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

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

  • 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#

External resources



Project members

settingdust

Member


Technical information

License
MIT
Client side
optional
Server side
optional
Project ID