? DynamicPack
一个轻量级模组,用于监控你的资源包版本并自动更新。
? 文档
请参阅 GitHub Wiki 获取完整的开发者文档、高级功能及示例。
? 使用 DynamicPack 的资源包
以下资源包已启用自动 DynamicPack 更新:
- CursedEveryday (GitHub)
- ModsRU
- Zelda Music
- PawTotems (SMP, GitHub)
- SPPack (SMP, GitHub)
- Essentially Tweaked
- Vanilla Leaves
⚙️ 工作原理
资源包开发者会在其包内包含一个名为 dynamicmcpack.json 的元数据文件。
在游戏启动时,DynamicPack 会检查更新并在必要时自动下载最新版本。
? 对于玩家
安装模组即可享受——DynamicPack 将在后台处理更新。
? 对于开发者
如果你希望你的资源包能够 自动更新,你可以选择以下集成选项之一。
? 选项 1 — 从 Modrinth 更新
在你的资源包中创建一个名为 dynamicmcpack.json 的文件:
{
"current": {
"version_number": "7.1" // 当前资源包版本
},
"remote": {
"game_version": "1.21.1", // 兼容的 Minecraft 版本
"modrinth_project_id": "better-leaves", // 你的 Modrinth 项目标识符或 ID
"type": "modrinth" // 更新源类型(Modrinth)
},
"formatVersion": 1 // 内部配置格式版本
}
? 选项 2 — 从 GitHub 更新
在你的资源包中创建一个名为 dynamicmcpack.json 的文件:
{
"current": {},
"remote": {
"sign_no_required": true, // 可选数字签名 — 设置为 true 以禁用验证
"type": "dynamic_repo", // 更新源类型(动态仓库)
"url": "https://adamcalculator.github.io/CursedEveryday/" // 远程仓库 URL
},
"formatVersion": 1 // 内部配置格式版本
}
接下来,创建如下 dynamicmcpack.repo.json 文件:
{
"formatVersion": 1, // 内部架构版本
"build": 10, // 当前发布的构建号
"name": "CursedEveryday", // 资源包的显示名称
"contents": [
{
// 元数据块(关于包组件的主要信息)
"url": "path/to/content.json",
"hash": "5e4d4ad1e9714487263c51f5f83c448c0708773a", // content.json 的 SHA1 校验和
"id": "meta",
"hidden": true, // 在面向用户的列表中隐藏此组件
"required": true // 标记此组件为必需
},
{
// 附加内容部分的示例
"url": "path/to/content.json",
"hash": "6e6739297dac80078bbc4890567f05d4015553db",
"id": "cursed",
"name": "Cursed content" // 可选友好显示名称
}
]
}
接下来,为每个内容部分创建单独的 content.json 文件:
{
"formatVersion": 1, // 架构版本
"content": {
"parent": "path/to/parent", // 包含文件的本地文件夹
"remote_parent": "remote/path/to/parent", // Git 仓库中对应的路径
"files": {
"path/to/file": {
"hash": "ca55daeef2e2d84ccd64608cf889ac321c18d4c2", // 文件的 SHA1 哈希值
"size": 4773 // 文件大小(字节)
},
"path/to/file2": {
"hash": "336e9f4e6d7d1400d8a308a33e703e8b33ea5434",
"size": 54665
},
"path/to/file3": {
"hash": "09dae0777de1705e8acd0ff84c0bb6b7e3e22f63",
"size": 98592
}
}
}
}
⚠️ 重要提示: 这些示例使用了
json5,它允许注释(//)。
实际文件必须是有效的.json格式,因此在使用前请删除注释或使用 此 JSON 检查器 进行验证。
高级功能——例如动态仓库——详见 GitHub Wiki。
? 支持本项目
DynamicPack 是开源的,并在 MIT 许可证下完全免费。
如果您想支持原作者:
比特币:
bc1qpc0q9ym7rnfatdh43c4jyf68znj8x2jae5j4cz
每一聪都能帮助维持项目的动态运转(或许还能多买一杯咖啡 ☕)。
? DynamicPack
A lightweight mod that monitors your resource pack version and updates it automatically.
? Documentation
See the GitHub Wiki for full developer documentation, advanced features, and examples.
? Resource Packs Using DynamicPack
These resource packs already use automatic DynamicPack updates:
- CursedEveryday (GitHub)
- ModsRU
- Zelda Music
- PawTotems (SMP, GitHub)
- SPPack (SMP, GitHub)
- Essentially Tweaked
- Vanilla Leaves
⚙️ How It Works
Resource pack developers include a metadata file named dynamicmcpack.json inside their pack.
At game launch, DynamicPack checks for updates and automatically downloads the latest version if necessary.
? For Players
Install the mod and enjoy — DynamicPack will handle updates in the background.
? For Developers
If you’d like your pack to update itself automatically, you can choose one of the integration options below.
? Option 1 — Update from Modrinth
Create a file named dynamicmcpack.json in your pack:
{
"current": {
"version_number": "7.1" // Current version of your resource pack
},
"remote": {
"game_version": "1.21.1", // Compatible Minecraft version
"modrinth_project_id": "better-leaves", // Your Modrinth project slug or ID
"type": "modrinth" // Update source type (Modrinth)
},
"formatVersion": 1 // Internal config format version
}
? Option 2 — Update from GitHub
Create a file named dynamicmcpack.json in your pack:
{
"current": {},
"remote": {
"sign_no_required": true, // Optional digital signature — set to true to disable verification
"type": "dynamic_repo", // Update source type (Dynamic Repository)
"url": "https://adamcalculator.github.io/CursedEveryday/" // Remote repository URL
},
"formatVersion": 1 // Internal configuration format version
}
Next, create a dynamicmcpack.repo.json file like this:
{
"formatVersion": 1, // Internal schema version
"build": 10, // Build number of your current release
"name": "CursedEveryday", // Display name of your resource pack
"contents": [
{
// Metadata block (main information about pack components)
"url": "path/to/content.json",
"hash": "5e4d4ad1e9714487263c51f5f83c448c0708773a", // SHA1 checksum of content.json
"id": "meta",
"hidden": true, // Hides this component from user‑facing lists
"required": true // Marks this component as mandatory
},
{
// Example of an additional content section
"url": "path/to/content.json",
"hash": "6e6739297dac80078bbc4890567f05d4015553db",
"id": "cursed",
"name": "Cursed content" // Optional friendly display name
}
]
}
Next, create a separate content.json file for each content section:
{
"formatVersion": 1, // Schema version
"content": {
"parent": "path/to/parent", // Local folder containing the files
"remote_parent": "remote/path/to/parent", // Corresponding path in your Git repo
"files": {
"path/to/file": {
"hash": "ca55daeef2e2d84ccd64608cf889ac321c18d4c2", // SHA1 hash of file
"size": 4773 // File size in bytes
},
"path/to/file2": {
"hash": "336e9f4e6d7d1400d8a308a33e703e8b33ea5434",
"size": 54665
},
"path/to/file3": {
"hash": "09dae0777de1705e8acd0ff84c0bb6b7e3e22f63",
"size": 98592
}
}
}
}
⚠️ Important: These examples use
json5, which allows comments (//).
The actual files must be valid.json, so remove comments before use or validate them with this JSON checker.
Advanced features — such as dynamic repositories — are documented in the GitHub Wiki.
? Support the Project
DynamicPack is open‑source and completely free under the MIT License.
If you’d like to support the original author:
Bitcoin:
bc1qpc0q9ym7rnfatdh43c4jyf68znj8x2jae5j4cz
Every satoshi helps keep things dynamic (and maybe buys some extra coffee ☕).
下载 DynamicPack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DynamicPack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DynamicPack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DynamicPack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DynamicPack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DynamicPack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DynamicPack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DynamicPack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DynamicPack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DynamicPack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Beta 1.2.3
更新内容
- 支持 Minecraft 26.1
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧