Repository navigation
Home
JEI Structures 用于在 JEI 中查看结构包含的方块、生物、战利品表、容器物品和特殊信息。
JEI Structures lets you view blocks, mobs, loot tables, container items, and special information contained in structures directly in JEI.
/jei_structures export 适合普通玩家和整合包使用者。它会根据当前配置、数据包绑定和 config/jei_structures/exports/ 中的收集结果生成 JEI 实际读取的索引文件,但无法完整识别硬编码生成的生物、战利品等内容。
/jei_structures export is suitable for normal players and modpack users. It generates the JEI index file from the current configs, data pack bindings, and captured results in config/jei_structures/exports/, but it cannot fully detect hardcoded mobs or loot.
/jei_structures debug_capture_quick 适合整合包作者和开发者。它会实际定位结构、逐个传送采集信息,因此几乎可以搜集所有生物和战利品信息,但耗时较长。之所以要这样做,是因为我的世界原版和很多模组里有太多硬编码生成的生物、随机生成方块调用的战利品表,其中大部分还是 BOSS 这类重要生物,单靠静态导出很难完整识别。
/jei_structures debug_capture_quick is for modpack authors and developers. It actually locates structures and collects information one by one, so it can capture almost all mobs and loot information, but it takes a long time. This is necessary because vanilla Minecraft and many mods contain too many hardcoded mobs and loot tables called by randomly generated blocks, and many of them are important boss mobs that cannot be fully detected by static export alone.
直接执行:
Run:
/jei_structures export生成的文件为:
Generated file:
config/jei_structures/structure_index.json
这个文件就是 JEI 实际读取的结构索引。普通玩家通常只需要它。
This file is the actual structure index read by JEI. Normal players usually only need this file.
先执行收集:
Run the collector first:
/jei_structures debug_capture_quick all可用子命令:
Available subcommands:
/jei_structures debug_capture_quick mod cataclysm
/jei_structures debug_capture_quick structure minecraft:village_plains
/jei_structures debug_capture_quick dimension minecraft:overworld
/jei_structures debug_capture_quick remaining
/jei_structures debug_capture_quick status
/jei_structures debug_capture_quick stop收集完成后,再执行:
After collection finishes, run:
/jei_structures export这样会生成更完整的 structure_index.json。
This will generate a more complete structure_index.json.
export 会自动创建 config/jei_structures/exports/。修改或替换 exports 中的报告后,必须重新执行 /jei_structures export;支持 EMI 的版本由 JEI 和 EMI 共用同一份结构缓存,客户端通常需要重启才能看到新增信息。
export creates config/jei_structures/exports/ automatically. After modifying or replacing reports in exports, run /jei_structures export again. Versions with EMI support share this structure cache between JEI and EMI, and the client usually needs to restart before new information appears.
debug_capture_quick 的原始结果保存在:
The raw output of debug_capture_quick is saved in:
config/jei_structures/reports/
这里面的内容只是原始收集结果,不会直接参与最终导出。
These files are only raw collection results and are not used directly in the final export.
如果要让收集结果生效,需要手动把对应批次复制到配置目录的 exports 导入目录:
If you want the collection results to take effect, manually copy the corresponding batch into the exports import directory under the config folder:
config/jei_structures/exports/<run_id>/structure_to_mobs/
config/jei_structures/exports/<run_id>/structure_loot_bindings/
<namespace> 可以换成你自己的数据包命名空间,<run_id> 可以保留 quick 自动生成的名字,也可以改成任意合法文件夹名,例如 cataclysm_capture。
<namespace> can be your own data pack namespace, and <run_id> can keep the quick-generated name or be renamed to any valid folder name, such as cataclysm_capture.
JEI Structures 支持用数据包和 exports 导入目录补充、修正或隐藏结构信息。推荐整合包作者把最终要生效的信息放进数据包或 config/jei_structures/exports/,而不是直接依赖 config/jei_structures/reports/ 里的原始收集结果。
JEI Structures supports data packs and the exports import directory for adding, correcting, or hiding structure information. Modpack authors should put final, active data into a data pack or config/jei_structures/exports/ instead of relying directly on raw files under config/jei_structures/reports/.
debug_capture_quick 输出的批次目录示例:
Example quick capture output batch:
config/jei_structures/reports/20260608_103829_480_7195/
如果你想让这一批结果生效,把需要的目录复制到 exports:
To make that batch active, copy the needed folders into exports:
config/jei_structures/exports/<run_id>/structure_to_mobs/
config/jei_structures/exports/<run_id>/structure_loot_bindings/
<run_id> 可以继续使用自动生成的名字,也可以改成任意合法文件夹名,例如:
<run_id> may keep the generated name or be renamed to any valid folder name, for example:
config/jei_structures/exports/cataclysm_capture/structure_to_mobs/
config/jei_structures/exports/cataclysm_capture/structure_loot_bindings/
放进 exports 后,重新执行:
After putting the files into exports, run:
/jei_structures export也支持不带批次目录,直接把 JSON 放在 config/jei_structures/exports/structure_to_mobs/ 或 config/jei_structures/exports/structure_loot_bindings/ 下。导出器只识别这两个目录中的 JSON,会忽略 failed_structures.json 和其他无关文件;多个批次会稳定去重并补充合并。
You may also omit the batch directory and put JSON files directly under config/jei_structures/exports/structure_to_mobs/ or config/jei_structures/exports/structure_loot_bindings/. The exporter only recognizes JSON files under these two directories, ignores failed_structures.json and unrelated files, and stably deduplicates and supplements multiple batches.
如果想让某些方块在 JEI 结构页中优先显示为“特殊方块”,把它们加入这个方块 tag:
To make blocks appear first as special blocks on the JEI structure page, add them to this block tag:
data/jei_structures/tags/blocks/special_display_blocks.json
示例 / Example:
{
"replace": false,
"values": [
"minecraft:spawner",
"minecraft:chest"
]
}如果某个结构里出现了这里绑定的生物,JEI 页面顶部会显示“特殊信息”。鼠标悬停刷怪蛋时会显示对应汉化键文本。
If a structure contains an entity bound here, the JEI page will show it under Special Info. Hovering the spawn egg displays the translated note.
路径 / Path:
data/<namespace>/structure_special_entities/<file_name>.json
单对象示例 / Single object example:
{
"entity_id": "minecraft:warden",
"translation_key": "jei_structures.special.minecraft.warden"
}数组示例 / Array example:
[
{
"entity_id": "minecraft:warden",
"translation_key": "jei_structures.special.minecraft.warden"
},
{
"entity_id": "minecraft:evoker",
"translation_key": "jei_structures.special.minecraft.evoker"
}
]如果某个结构里出现了这里绑定的特殊方块,JEI 页面顶部会显示“特殊信息”。鼠标悬停方块物品时会显示对应汉化键文本。
If a structure contains a special block bound here, the JEI page will show it under Special Info. Hovering the block item displays the translated note.
路径 / Path:
data/<namespace>/structure_special_blocks/<file_name>.json
示例 / Example:
{
"block_id": "minecraft:spawner",
"translation_key": "jei_structures.special.minecraft.spawner"
}这两类特殊说明文件都支持单个对象或对象数组。translation_key 对应的实际文本需要放在资源包或模组语言文件中。
Both special info directories support either a single object or an array of objects. The actual text for translation_key must be provided by a resource pack or mod language file.
黑名单用于排除不想展示的信息。它在 /jei_structures export 生成缓存时生效,所以被排除内容不会出现在 JEI 页面,也不会参与 JEI 查配方/查用途索引。
Blacklists hide unwanted information during /jei_structures export, so excluded entries will not appear in JEI and will not be used for JEI lookup indexing.
路径 / Path:
data/<namespace>/structure_blacklists/<file_name>.json
支持字段 / Supported fields:
| 字段 / Field | 说明 / Description |
|---|---|
structure_id |
只影响一个结构 / Applies to one structure |
structure_ids |
影响多个结构 / Applies to multiple structures |
all_structures |
为 true 时影响所有结构 / Applies to all structures when true
|
loot_tables |
排除指定战利品表 / Excludes loot tables |
blocks |
排除特殊方块显示 / Excludes special display blocks |
containers |
排除指定方块对应的容器记录和容器存储物 / Excludes container records and stored items for these blocks |
entities |
排除指定结构生物、刷怪笼生物和对应生物掉落物 / Excludes structure mobs, spawner mobs, and their drops |
指定结构示例 / Per-structure example:
{
"structure_id": "minecraft:ancient_city",
"loot_tables": ["minecraft:chests/ancient_city"],
"containers": ["minecraft:chest"],
"blocks": ["minecraft:reinforced_deepslate"],
"entities": ["minecraft:warden"]
}多个结构示例 / Multiple structures example:
{
"structure_ids": [
"minecraft:desert_pyramid",
"minecraft:jungle_pyramid"
],
"containers": ["minecraft:chest"],
"loot_tables": ["minecraft:chests/desert_pyramid"]
}全局示例 / Global example:
{
"all_structures": true,
"loot_tables": ["minecraft:chests/simple_dungeon"],
"containers": ["minecraft:barrel"],
"blocks": ["minecraft:spawner"],
"entities": ["minecraft:zombie"]
}黑名单文件也支持对象数组:
Blacklist files also support arrays:
[
{
"all_structures": true,
"entities": ["minecraft:zombie"]
},
{
"structure_id": "minecraft:ancient_city",
"entities": ["minecraft:warden"]
}
]说明 / Notes:
-
blocks只控制“特殊方块”展示,不会删除容器内容。 -
containers会删除对应方块的容器记录、容器存储物和容器战利品表。 -
loot_tables只删除命中的战利品表及该表带来的物品,不会按物品 ID 删除其他来源产生的同名物品。 -
entities会删除结构生物和对应生物掉落物。 -
修改数据包后需要重新执行
/jei_structures export。 -
blocksonly controls Special Blocks display and does not remove container contents. -
containersremoves container records, stored items, and container loot tables for matching blocks. -
loot_tablesremoves matching loot tables and items coming from those tables, but does not remove same-item results from other sources. -
entitiesremoves structure mobs and their drops. -
After changing data packs, run
/jei_structures exportagain.
debug_capture_quick 可能会花费很长时间,具体取决于结构数量、维度数量、世界生成速度和电脑性能。
debug_capture_quick may take a long time depending on the number of structures, dimensions, world generation speed, and hardware performance.
建议在测试世界或备份世界中执行,不建议在重要存档中直接运行。
It is recommended to run it in a test world or backup world, not directly in an important save.
收集过程中玩家会被传送,区块会被加载,游戏可能出现明显卡顿。
During collection, the player will be teleported, chunks will be loaded, and the game may lag noticeably.
信息收集通常只需要执行一次。只有在模组列表、结构生成、数据包、配置或战利品表发生变化后,才需要重新收集并重新导出。
Information collection usually only needs to be done once. Re-collect and re-export only after the mod list, structure generation, data packs, configs, or loot tables change.