Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_r569qlAV.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Hocon Resource Loader - 墨喵 Minecraft 资源
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)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Keeg's Weapon Mod

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

查看详情
EnderSyrup

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

查看详情
Kerfur Omega Totems

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

查看详情
ATTM - All The Tech Mods

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

查看详情