• 注册
  • MOD模组 MOD模组 关注:32 内容:16399

    远程资源包 (Remote Resource Pack)

  • 查看作者
  • 打赏作者
  • 当前位置: SodaMC > MOD模组 > 正文
  • 潮涌核心
    反派

    远程资源包 (Remote Resource Pack)


    这个模组允许您加载资源包,其中的内容从互联网上下载而来。


    为什么需要这个模组?

    一些玩家、模组和模组包可能需要保持其资源包的更新。

    而且,一些资源可能无法直接分发,因此需要在运行时下载。

    配置格式

    将配置文件放置在 `.minecraft/config/RemoteResourcePack/` 目录(或其子目录)中,后缀为 `.json`。

    以下是一个示例。请注意,配置文件中不允许包含注释。

    json5
    {
    "schema": 1, // 必须字段
    // 资源包将过期并需要重新下载的时间
    // 例如 2分钟 / 3天 / 11小时45分钟14秒
    // 可以是 "always" 或 "never"
    "autoUpdate": "2h",
    // 资源包配置,控制包含哪些文件
    "zipconfig": "https://featurehouse.github.io/epx_packs/v2/dl/zipconfig.json",
    "args": { // 动态内容参数
    "poem": "random", // 可以是字面值 "random"
    "splashes": 0 // 可以是数字索引
    },
    // 远程内容 URL 的基础 URL
    "base": "https://featurehouse.github.io/epx_packs/v2/dl/index.html"
    }

    zipconfig 格式(同样不允许注释):

    json5
    {
    "static": { // 始终包含的文件
    "pack.mcmeta": {
    "raw": "{\"pack\":{\"pack_format\":18,\"description\":\"Hello World\"}}"
    },
    "assets/example/test.bin": {
    "base64": "TmV2ZXIgR29ubmEgR2l2ZSBZb3UgVXAh"
    },
    "assets/example/songs/dynamic/rickroll.ogg": {
    "fetch": "https://www.example.net/songs/Rick%20Astley/Never_Gonna_Give_You_Up-HiRes.ogg"
    },
    "assets/example/lang/fr_fr.json": {
    "fetch": "/my-interesting-example-mod/resources/i18n/fr_fr.json"
    }
    },
    "dynamic": {
    "example-arg": {
    "default": "random",
    "items": [{
    "weight": 250,
    "files": {
    "assets/example/news/content.json": {"fetch": "/my-interesting-example-mod/news-channel/1.json"},
    "assets/example/news/timestamp.txt": {"raw": "2023-10-10T09:24:30+08:00"}
    }
    }, {
    "files": {
    "assets/example/news/content.json": {"fetch": "/my-interesting-example-mod/news-channel/2.json"},
    "assets/example/news/timestamp.txt": {"raw": "2023-10-10T09:25:21+08:00"}
    }
    }]
    },
    "another_arg": {
    "default": 0,
    "items": [
    {},
    {
    "files": {
    "assets/example/textures/items/silver_ingot.png": {
    "fetch": "/my-interesting-example-mod/experimental/resources/silver_ingot/2023-10-10.png"
    }
    }
    }
    ]
    }
    }
    }

    内置模组的配置

    模组可以在 JAR 文件的根目录下包含他们的配置文件 `RemoteResourcePack.json`。

    这是一个示例:
    json
    {
    "end-poem-extension/recommended-pack-v2.json": {
    "schema": 1,
    "_description": [
    "结尾诗扩展推荐包",
    "下载时内容可能随机选择"
    ],
    "autoUpdate": "2h",
    "args": {
    "poem": "random",
    "splashes": 0
    },
    "base": "https://featurehouse.github.io/epx_packs/v2/dl/index.html",
    "zipconfig": "https://featurehouse.github.io/epx_packs/v2/dl/zipconfig.json"
    }
    }

    配置将被转储到 `.minecraft/config/RemoteResourcePack/end-poem-extension/recommended-pack-v2.json`(如果不存在),然后加载。

    来自Modrinth

    [1.21.x-1.20.5 NeoForge] 1.2.7

    RemoteResourcePack-neo-1.2.7+1.21.jar下载1.2.7+1.21-neoforge#Beta
    RemoteResourcePack-neo-1.2.7+1.21-sources.jar下载1.2.7+1.21-neoforge#Beta
    展开
    版本: 1.2.7+1.21-neoforge
    支持游戏: 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5
    类型: NeoForge
    Beta
    下载次数: 126

    [1.21.x-1.20.5 MCF] 1.2.7

    RemoteResourcePack-forge-1.2.7+1.21.jar下载1.2.7+1.21-forge#Beta
    RemoteResourcePack-forge-1.2.7+1.21-sources.jar下载1.2.7+1.21-forge#Beta
    展开
    版本: 1.2.7+1.21-forge
    支持游戏: 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5
    类型: Forge
    Beta
    下载次数: 89

    [1.21.x-1.20.5 Fabric] 1.2.7

    RemoteResourcePack-fabric-1.2.7+1.21.jar下载1.2.7+1.21-fabric#Beta
    RemoteResourcePack-fabric-1.2.7+1.21-sources.jar下载1.2.7+1.21-fabric#Beta
    展开
    版本: 1.2.7+1.21-fabric
    支持游戏: 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5
    类型: Fabric Quilt
    Beta
    下载次数: 328

  • 收录

  • 请登录之后再进行评论

    登录
  • Soda任务 图片
  • 偏好设置
  • 主题
  • 帖子间隔 侧栏位置: