跳到正文

EmitLightTag

作者:ImEden6

This project adds a mod that scans every loaded block and builds a c:emits_light tag at runtime, so JEI/EMI's #emits_light search finds every light source in your modpack.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Emit Light Tag

Searching a heavily modded pack for every block that gives off light usually means scrolling through JEI/EMI by hand and hoping you didn’t miss anything. This mod builds the list for you.

At runtime, it scans every block currently loaded, vanilla or modded, and checks whether any of its possible states can emit light, not just its default appearance. That catches conditional sources too: an unlit redstone lamp still counts, since it lights up once powered, and the same goes for candles, sea pickles, and anything else that only glows under specific conditions. The result gets written into a real c:emits_light tag, mirrored onto the matching items, so typing #emits_light into JEI or EMI’s search bar returns the full list.

A plain datapack can’t do this. Block light emission is defined in each mod’s Java code, not in JSON, so a static file can never account for whatever mod list a player actually has installed. Generating the tag at runtime is the only way to keep it accurate.

No JEI or EMI plugin code is required. Both already support #tag search on their own, so the mod works the same whether you have one, both, or neither installed. If another mod or datapack already defines entries for c:emits_light, this merges with them instead of overwriting.

Available for Fabric 1.20.1 and NeoForge 1.21.1.

This only affects search. It doesn’t touch recipes, loot tables, or crafting.

常见问题

EmitLightTag 支持哪些 Minecraft 版本?

EmitLightTag 支持 Minecraft Java 版 1.20.1–1.21.1,共 7 个版本,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

EmitLightTag 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

ImEden6 的其他作品

查看全部 →