Hocon Resource Loader 图标

Hocon Resource Loader

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.5.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/hocon-resource-loader
资源信息

Minecraft 版本: 1.21

平台: fabric

标签: management utility

资源介绍

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

📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
WynnLODGrabber

价格:0 墨喵币
下载量:0

查看详情
Fish of Thieves

价格:0 墨喵币
下载量:0

查看详情
For the real potatoes

价格:0 墨喵币
下载量:0

查看详情
[DISCONTINUED] Macaw's Fences - Oh The Biomes You'll Go

价格:0 墨喵币
下载量:0

查看详情