promotional bannermobile promotional banner

[喵呜档案导出机]Meow Archive Exporter

An in-game exporter built for mcmod.cn — China's Chinese-language Minecraft wiki — turning any modpack into ready-to-publish item, entity, and effect data with icons.

# Meow Archive Exporter

A client-side Minecraft mod that exports mod content — items, blocks, entities and effects — into mcmod-style JSON, icons and a browsable preview page, without leaving the game.

一个客户端模组:在游戏内把物品、方块、实体、状态效果导出成 mcmod 格式的 JSON、图标和一页可浏览的预览,不需要退出游戏。

> MIT License · <https://github.com/zgxhzhr/meowarchive&gt;

---

## English

### What it does

Point it at a namespace, press export, and it dumps everything that namespace registers:

| Kind | Icon | JSON |
|---|---|---|
| Items / BlockItems | 32×32 and 128×128, rendered through the real GUI tooltip pipeline | `<ns>_items.json` |
| Entities | 128×128 offscreen render (one frame, read back from an FBO) | `<ns>_entities.json` |
| Effects (BUFF / DEBUFF) | read from `textures/mob_effect/<id>.png`, nearest-neighbour upscale, colour count validated | `<ns>_effects.json` |

JSON field names follow the LMS mcmod export format (`englishName`, `smallIcon`, `largeIcon`, `maxStacksSize`, `maxDurability`, …), so the output can be fed straight into the mcmod batch import script. A merged `<ns>_all.json` carries every entry with an extra `kind`, and `<ns>/preview.html` is a single self-contained page with embedded icons, search/filter and click-to-copy register names.

### Install

1. Drop the jar matching your Minecraft version and loader into `mods/`. Fabric builds need Fabric API; Forge / NeoForge builds need nothing extra.
2. Launch the game and enter a world — rendering icons requires a live client with a level loaded.
3. Run `/meowarchive`, or right-click with the Meow Machine item, to open the exporter.

### Four modes

| Mode | Behaviour |
|---|---|
| Full export | Renders icons, writes PNGs and JSON |
| JSON only | No rendering, icon fields left empty |
| Icons only | Writes PNGs, no JSON |
| Single icon | Pick one entry from the search list and export just that icon |

### Output

```
meowarchive-export/
├─ status.json                  machine-readable summary (state, counts, failed entries)
├─ failures.txt                 failures / no-visible-model / suspect entries, omitted when clean
└─ <namespace>/
   ├─ <ns>_items.json
   ├─ <ns>_entities.json
   ├─ <ns>_effects.json
   ├─ <ns>_all.json
   ├─ icons/
   └─ preview.html
```

Default location is `.minecraft/meowarchive-export/`; change it via `outputDir` in `config/meowarchive.json`.

### Unattended export

Every build can run headless from a config file, which is what makes it usable from a script:

```json
// config/meowarchive-auto.json
{ "namespace": "my_mod", "world": "mcauto", "exitWhenDone": true, "timeoutSeconds": 600 }
```

- `world` makes the client load that save (or create it) by itself once it reaches the title screen; branches from 1.17.1 / 1.19.2 onward support it, older ones expect an external script to get the client in-world.
- `-Dmeowarchive.autoNamespace=<ns>` overrides the file, `-Dmeowarchive.autoExit=true` closes the client when done, `-Dmeowarchive.autoTimeoutSeconds` caps the run.
- `timeoutSeconds` writes a `FAIL` status instead of hanging forever if a render stalls.

### Supported versions

One branch per Minecraft version, each with its own release — from 1.7.10 through 1.21.11 and the 26.x snapshots. The 1.21.1 line uses its own 1.3.x numbering; every other branch is 1.0.x. Feature parity differs slightly by age: the oldest branches export items only, entity export starts around 1.12.2, effects around 1.14.4. Check the asset list of the release for your version to see which loaders are built.

### Known limitations

- Client-side only: entity and item icons need a running game with a world; there is no CLI mode.
- Entities whose renderer produces a blank frame are reported in `failures.txt` / `status.json` rather than silently skipped.
- Blocks are exported as their BlockItem; block models are not rendered.
- A mod that forgets to register translations still gets exported — names fall back to the register name instead of being dropped.

### Credits

MIT licensed. The one-frame-per-icon offscreen rendering approach comes from the author's own ZHR_SuperDBG, re-licensed MIT here.

---

## 中文

### 它是做什么的

选定一个命名空间、点导出,它把该命名空间注册的东西全部倒出来:

| 类型 | 图标 | JSON |
|---|---|---|
| 物品 / 方块(BlockItem) | 32×32 与 128×128,走真实 GUI 渲染链路 | `<ns>_items.json` |
| 实体 | 128×128 离屏渲染(一帧一读回) | `<ns>_entities.json` |
| 状态效果(BUFF / DEBUFF) | 直接读 `textures/mob_effect/<id>.png`,最近邻放大,校验颜色数 | `<ns>_effects.json` |

JSON 字段沿用 LMS 的 mcmod 导出格式(`englishName`、`smallIcon`、`largeIcon`、`maxStacksSize`、`maxDurability` 等),产出可以直接喂给 mcmod 批量导入脚本。另有合并文件 `<ns>_all.json`(每条多一个 `kind`)与 `<ns>/preview.html`——单文件、图标内嵌、支持搜索筛选、点卡片复制注册名。

### 安装

1. 把对应版本与加载器的 jar 放进 `mods/`。Fabric 端需要 Fabric API,Forge / NeoForge 端无需额外前置。
2. 启动游戏并进入一个世界——渲染图标必须有跑着的客户端和已加载的存档。
3. 输入 `/meowarchive`,或手持喵呜机右键,打开导出器。

### 四种模式

| 模式 | 行为 |
|---|---|
| 完整导出 | 渲染图标、写 PNG、写 JSON |
| 只导出 JSON | 不渲染,图标字段留空 |
| 只导出图标 | 只写 PNG,不写 JSON |
| 导出单个图标 | 在搜索列表里挑一条,只导它的图 |

### 产出结构

```
meowarchive-export/
├─ status.json                  机器可读的结果(状态、计数、失败条目)
├─ failures.txt                 失败 / 无可见模型 / 可疑条目,全部正常时不生成
└─ <namespace>/
   ├─ <ns>_items.json
   ├─ <ns>_entities.json
   ├─ <ns>_effects.json
   ├─ <ns>_all.json
   ├─ icons/
   └─ preview.html
```

默认在 `.minecraft/meowarchive-export/`,可在 `config/meowarchive.json` 的 `outputDir` 改。

### 无人值守导出

每个版本都能靠配置文件全自动跑一次,这也是它能被脚本调用的原因:

```json
// config/meowarchive-auto.json
{ "namespace": "my_mod", "world": "mcauto", "exitWhenDone": true, "timeoutSeconds": 600 }
```

- `world` 让客户端到主菜单后自己载入该存档(不存在则新建);1.17.1 / 1.19.2 起的分支支持,更早的分支需要外部脚本把客户端送进世界。
- `-Dmeowarchive.autoNamespace=<ns>` 覆盖文件里的命名空间,`-Dmeowarchive.autoExit=true` 结束后关闭客户端,`-Dmeowarchive.autoTimeoutSeconds` 限制总时长。
- `timeoutSeconds` 到点会写一份 `FAIL` 状态,而不是无限挂起。

### 支持版本

每个 Minecraft 版本一个分支、各自一个 release,从 1.7.10 一直到 1.21.11 与 26.x 快照。1.21.1 那条线用自己的 1.3.x 版本号,其余分支是 1.0.x。功能随年代略有差异:最早的几个分支只有物品导出,实体导出大致从 1.12.2 起,状态效果大致从 1.14.4 起。具体支持哪些加载器,看对应版本 release 的资产列表。

### 已知限制

- 纯客户端:物品与实体图标必须有跑着的游戏和已加载的存档,没有命令行模式。
- 渲染出空帧的实体会写进 `failures.txt` / `status.json`,不会静默跳过。
- 方块按 BlockItem 导出,不渲染方块模型。
- 模组漏写翻译时照常导出,名字回退成注册名,而不是直接丢弃。

### 致谢

MIT 许可。一帧一图标的离屏渲染思路来自作者自己的 ZHR_SuperDBG,在此以 MIT 重新授权。

[喵呜档案导出机]Meow Archive Exporter Team

profile avatar
  • 1
    Followers
  • 3
    Projects
  • 4.6K
    Downloads

More from zgxh_zhr