{"url":"https://levimc.org/mods/github.com/Dofes/DataDrivenTagRegistry/","id":"github.com/Dofes/DataDrivenTagRegistry","name":"Data Driven Tag Registry","description":"Data-driven tag registry for LeviLamina","owner":"Dofes","logo":"https://levimc.org/mods/icons/28b0006fff9733b6-288.webp","repository":"https://github.com/Dofes/DataDrivenTagRegistry","issues":"https://github.com/Dofes/DataDrivenTagRegistry/issues","releases":"https://github.com/Dofes/DataDrivenTagRegistry/releases","stars":0,"updated":"2026-03-20T17:14:22Z","created":"2026-03-20T08:54:13Z","license":"MIT","side":["server","client"],"platform":["win-x64"],"gameVersions":["1.21.124"],"tags":["platform:levilamina","type:mod"],"latest":{"variant":"","version":"0.0.1","install":"lip install github.com/Dofes/DataDrivenTagRegistry@0.0.1"},"readmes":[{"file":"README.md","lang":"zh-Hans","text":"# DataDrivenTagRegistry\n\n一个用于 **LeviLamina** 的数据驱动标签注册模组。\n\n它会在世界初始化完成后，扫描行为包中的 `data_driven_tags/*.json`，并将定义应用到：\n\n- `item` 标签（物品）\n- `block` 标签（方块）\n\n## 功能\n\n- 支持通过 JSON 声明标签成员\n- 支持标签引用（`#other_tag`）\n- 支持跨文件合并同名标签（同 `type` + 同 `identifier`）\n- 自动去重成员\n- 检测循环引用并记录警告\n\n## JSON 格式\n\n文件路径：`data_driven_tags/*.json`\n\n```json\n{\n\t\"type\": \"item\",\n\t\"identifier\": \"my_tag\",\n\t\"items\": [\n\t\t\"minecraft:stone\",\n\t\t\"dirt\",\n\t\t\"#another_tag\"\n\t]\n}\n```\n\n字段说明：\n\n- `type`: 当前支持 `item` / `block`\n- `identifier`: 标签名（不带 `#`）\n- `items`: 成员数组\n\t- 普通字符串：成员 ID\n\t- 以 `#` 开头：引用其他标签\n\n说明：\n\n- 成员若不带命名空间，会尝试补 `minecraft:` 进行兜底查找。\n- 引用未定义标签、找不到的物品/方块、不支持的 `type` 都会输出警告日志。\n\n## 构建\n\n在仓库根目录执行：\n\n1. `xmake f -y -p windows -a x64 -m release`\n2. `xmake`\n\n构建产物在 `bin/` 目录下。\n\n## 兼容性\n\n- LeviLamina 依赖版本见 `tooth.json`\n- 默认目标平台为 `server`（可通过 `xmake.lua` 配置）\n\n## 贡献\n\n欢迎提 Issue / PR。\n\n## License\n\nMIT License © Dofes"}],"gallery":[],"versions":[{"version":"0.0.1","prerelease":false,"releaseUrl":"https://github.com/Dofes/DataDrivenTagRegistry/releases","manifestUrl":"https://github.com/Dofes/DataDrivenTagRegistry/blob/v0.0.1/tooth.json","info":{"name":"Data Driven Tag Registry","description":"Data-driven tag registry for LeviLamina","tags":["platform:levilamina","type:mod"]},"variants":{"":[{"side":"server","platform":"win-x64","deps":{"github.com/LiteLDev/LeviLamina":"1.8.*"}}],"client":[{"side":"client","platform":"win-x64","deps":{"github.com/LiteLDev/LeviLamina#client":"1.8.*"}}]}}],"dependencies":{"github.com/liteldev/levilamina":{"id":"github.com/LiteLDev/LeviLamina","name":"LeviLamina","owner":"LiteLDev","url":"https://levimc.org/mods/github.com/LiteLDev/LeviLamina/"}},"requiredBy":[]}