Just Enough Filtering (JEF)
是否曾想在整合包中无需阅读每个工具提示就能找到最强的武器、工具和护甲?这就是 JEF 的作用。它增加了额外的搜索栏过滤功能,让你可以根据物品的实际属性值来查找物品。
JEF 不添加任何图形用户界面(GUI)。所有内容都在你已使用的搜索栏中输入。它是仅客户端模组,因此服务器不需要安装。
支持的宿主模组:JEI、EMI 和 REI。 JEF 会挂钩已安装的任意一个。
你的宿主模组原生提供的功能
JEF 保留了所有原生的搜索行为,仅在将剩余部分交还之前剥离其自身的属性令牌。
| 前缀 | JEI / REI | EMI |
|---|---|---|
@ |
模组名称 | 模组名称 |
| 工具提示文本 | #(较新版本的 JEI 为 $) |
$ |
| 标签 | $(较新版本的 JEI 为 #) |
# |
% |
创造模式标签页 | 创造模式标签页 |
^ |
颜色 | 颜色 |
& |
物品 ID / 资源位置 | 物品 ID / 资源位置 |
同时支持:空格表示 AND(且),| 表示 OR(或),-令牌 表示排除,以及用于多词令牌的引号,例如 #"attack damage"。
JEF 提供的功能
1) 使用 ! 进行属性过滤
根据属性值过滤物品,无论该属性是原版、Forge 还是模组自定义的。
!ad>=7- 攻击伤害至少为 7!as<=2.4- 攻击速度至多为 2.4!akb>0- 攻击击退大于 0!dps>=20- 计算出的每秒伤害(DPS)至少为 20(攻击伤害 × 攻击速度)-!ad>=7- 排除匹配的物品
可以使用完整 ID(!minecraft:generic.attack_damage>=7)或别名(见下方别名部分)。
2) 使用 ! 查看物品统计信息
! 不仅限于属性。这些过滤器读取物品本身,因此即使物品没有任何属性也能工作。
| 过滤器 | 读取内容 |
|---|---|
!durability / !maxdamage |
总耐久度 |
!damage |
堆叠中的当前损坏值 |
!remaining |
剩余耐久度 |
!maxstack / !stacksize |
最大堆叠数量 |
!enchantability |
附魔能力值 |
!repaircost |
累计的铁砧修复成本 |
!nutrition / !food / !hunger |
恢复饥饿值,不可食用时为 0 |
!saturation |
恢复饱和度的值 |
!burntime / !fuel |
熔炉燃烧时间(以刻为单位) |
!enchantments |
附魔数量 |
!ench:<id> |
特定附魔的等级,若不存在则为 0 |
示例:
!maxstack=1- 无法堆叠的物品!durability>=1500- 高耐久装备!nutrition>=6 !saturation>0.8- 真正优质的食物!burntime>=1600- 比煤炭更好的燃料!ench:sharpness>=4- 锋利 IV 或更高!ench:minecraft:mending- 任何带有经验修补的物品-!enchantments>0- 排除所有已附魔的物品
注意:
- 附魔 ID 默认为
minecraft,因此!ench:looting和!ench:minecraft:looting匹配相同的内容。模组自定义 ID 需要命名空间。 - 没有比较器的统计名称意味着“非零”,因此
!burntime代表所有燃料。 - 这些过滤器读取的是 Minecraft 自身的数据,而非工具提示文本,因此语言类和工具提示重格式化模组不会影响它们。
3) 比较器
| 比较器 | 含义 | 示例 |
|---|---|---|
>= <= > < |
有序比较 | !ad>=7 |
= 或 : |
等于 | !maxstack=1 |
!= 或 <> |
不等于 | !maxstack!=64 |
~ |
近似相等,误差在 5% 或 ±0.05 以内 | !as~1.6 |
a..b |
包含边界的范围 | !ad=5..10 |
lo<x<hi |
链式边界,< 为不包含,<= 为包含 |
5<!ad<=10 |
注意:
- 范围仅适用于
=/:。!ad>=5..10会被拒绝,而不是只应用一半。 - 链式边界将统计名称放在令牌中间,因此对多词工具提示标签需加引号:
3<#"entity reach"<9。 -否定整个令牌,因此-!ad=5..10排除范围内的物品。
4) 数字工具提示过滤
不知道别名也不想检查配置?在普通工具提示搜索中添加比较器和数字,JEF 就会根据工具提示行本身的数字进行过滤。
- JEI / REI:
#"entity reach">=3 - EMI:
$"entity reach">=3 #"armor negation">=30- 包含“armor negation”且数字至少为 30 的工具提示-#"crit chance">=15- 排除匹配的物品
注意:
- 文本匹配不区分大小写。
- 数值比较需要一个数字。不完整的比较(如
#"attack damage">)会回退到纯文本搜索。 - 在 JEI 中,数值比较在任一前缀后均可工作,因此无论该版本 JEI 使用哪个前缀处理工具提示,
#"attack damage">=7都能正常工作。
这是与模组无关的功能:如果某个模组将属性打印为工具提示文本,JEF 通常无需专门的兼容性支持即可对其进行过滤。
工具提示 vs 属性: !ad / !as / !dps 读取的是物品属性,因此在力量(Strength)或类似效果下,你的工具提示可能会显示更高的数值。若要过滤显示的数值,请使用 #"attack damage">=20。
别名
JEF 在运行时从属性注册表中构建别名索引。它始终包含完整的属性 ID,加上由 ID、翻译名称生成的一些别名,以及一些简短的便利别名,如 ad 和 as。
| 文件 | 用途 |
|---|---|
config/jef-aliases.generated.properties |
完整别名映射表,在运行时被覆盖,请勿编辑 |
config/jef-aliases.properties |
你的覆盖设置,若缺失则创建一次,存在时具有权威性 |
单个覆盖也可以放在 config/jef.json 下的 manualAliases 中:
{ "manualAliases": ["entityreach=attributeslib:entity_reach"] }
配置
| 选项 | 默认值 | 效果 |
|---|---|---|
autoAliasesEnabled |
true | 自动发现属性并生成别名 |
autoFromIds |
true | 从注册表 ID 生成别名 |
autoFromTranslations |
true | 从客户端语言的翻译名称生成别名 |
enableShortAliases |
true | 生成短别名,如 ad、as、kbres |
| enableAbbreviationAliases | false | 从单词生成缩写别名;默认关闭,因为会导致冲突 |
| aliasFileEnabled | true | 读取和写入别名属性文件 |
| logAliases | false | 在启动时记录解析后的别名映射表 |
| showDpsTooltip | false | 在项目工具提示中添加一行 DPS: <数值> |
| usePlayerContextCombat | false | 在 !ad / !as / !akb / !dps 中包含你当前的增益效果,以便过滤匹配已包含这些信息的工具提示 |
Just Enough Filtering (JEF)
Ever wanted to find the strongest weapons, tools, and armor in your modpack without reading every tooltip? That's what JEF is for. It adds extra search-bar filtering so you can find items by their actual stats.
JEF adds no GUI. Everything is typed into the search bar you already use. It is client-side only, so servers don't need it.
Supported hosts: JEI, EMI, and REI. JEF hooks whichever one is installed.
What Your Host Mod Already Offers
JEF keeps all native search behavior and only strips its own stat tokens before handing the rest back.
| Prefix | JEI / REI | EMI |
|---|---|---|
@ |
mod name | mod name |
| tooltip text | # ($ on newer JEI) |
$ |
| tags | $ (# on newer JEI) |
# |
% |
creative tab | creative tab |
^ |
color | color |
& |
item id / resource location | item id / resource location |
Also supported: spaces = AND, | = OR, -token = exclude, and quotes for multi-word tokens such as #"attack damage".
What JEF Offers
1) Attribute filtering with !
Filter items by attribute value, whether the attribute is vanilla, Forge, or modded.
!ad>=7- Attack Damage at least 7!as<=2.4- Attack Speed at most 2.4!akb>0- Attack Knockback above 0!dps>=20- computed DPS at least 20 (Attack Damage x Attack Speed)-!ad>=7- exclude items that match
Use a full id (!minecraft:generic.attack_damage>=7) or an alias (see Aliases below).
2) Item stats with !
! isn't limited to attributes. These read the item itself, so they work on items with no attributes at all.
| Filter | Reads |
|---|---|
!durability / !maxdamage |
total durability |
!damage |
current damage on the stack |
!remaining |
durability left |
!maxstack / !stacksize |
max stack size |
!enchantability |
enchantment value |
!repaircost |
accumulated anvil cost |
!nutrition / !food / !hunger |
hunger restored, 0 if inedible |
!saturation |
saturation restored |
!burntime / !fuel |
furnace burn time in ticks |
!enchantments |
enchantment count |
!ench:<id> |
level of one enchantment, 0 if absent |
Examples:
!maxstack=1- items that don't stack!durability>=1500- high-durability gear!nutrition>=6 !saturation>0.8- genuinely good food!burntime>=1600- fuels better than coal!ench:sharpness>=4- Sharpness IV or better!ench:minecraft:mending- anything with Mending-!enchantments>0- exclude everything enchanted
Notes:
- Enchantment ids default to
minecraft, so!ench:lootingand!ench:minecraft:lootingmatch the same thing. Modded ids need the namespace. - A stat name with no comparator means "nonzero", so
!burntimeis every fuel. - These read Minecraft's own data, not tooltip text, so language and tooltip-reformatting mods don't affect them.
3) Comparators
| Comparator | Meaning | Example |
|---|---|---|
>= <= > < |
ordered comparison | !ad>=7 |
= or : |
equal | !maxstack=1 |
!= or <> |
not equal | !maxstack!=64 |
~ |
approximately equal, within 5% or ±0.05 | !as~1.6 |
a..b |
inclusive range | !ad=5..10 |
lo<x<hi |
chained bounds, < exclusive and <= inclusive |
5<!ad<=10 |
Notes:
- Ranges only work with
=/:.!ad>=5..10is rejected rather than half-applied. - Chained bounds put the stat name mid-token, so quote multi-word tooltip labels:
3<#"entity reach"<9. -negates the whole token, so-!ad=5..10excludes items inside the range.
4) Numeric Tooltip Filtering
Don't know an alias and don't want to check the config? Add a comparator and a number to a normal tooltip search and JEF filters on the numbers in the tooltip line itself.
- JEI / REI:
#"entity reach">=3 - EMI:
$"entity reach">=3 #"armor negation">=30- tooltips containing "armor negation" and a number at least 30-#"crit chance">=15- exclude matching items
Notes:
- Text matching is case insensitive.
- A numeric comparison needs a number. An incomplete one like
#"attack damage">falls back to a plain text search. - On JEI, a numeric comparison works behind either prefix, so
#"attack damage">=7works on every JEI build regardless of which prefix that build uses for tooltips.
This is mod-agnostic: if a mod prints a stat as tooltip text, JEF can usually filter it with no dedicated compat.
Tooltip vs attribute: !ad / !as / !dps read item attributes, so your tooltip may show higher numbers under Strength or similar effects. To filter the displayed number instead, use #"attack damage">=20.
Aliases
JEF builds an alias index at runtime from the attribute registry. It always includes the full attribute id, plus aliases generated from ids, translated names, and a few short conveniences like ad and as.
| File | Purpose |
|---|---|
config/jef-aliases.generated.properties |
full alias map, overwritten at runtime, don't edit |
config/jef-aliases.properties |
your overrides, created once if missing, authoritative when present |
Single overrides can also go in config/jef.json under manualAliases:
{ "manualAliases": ["entityreach=attributeslib:entity_reach"] }
Config
| Option | Default | Effect |
|---|---|---|
autoAliasesEnabled |
true | auto-discover attributes and generate aliases |
autoFromIds |
true | generate aliases from registry ids |
autoFromTranslations |
true | generate aliases from translated names in the client language |
enableShortAliases |
true | generate short aliases like ad, as, kbres |
enableAbbreviationAliases |
false | generate abbreviations from words; off because it causes collisions |
aliasFileEnabled |
true | read and write the alias properties files |
logAliases |
false | log the resolved alias map at startup |
showDpsTooltip |
false | add a DPS: <value> line to item tooltips |
usePlayerContextCombat |
false | include your current buffs in !ad / !as / !akb / !dps so filtering matches tooltips that already do |
下载 Just Enough Filtering (JEF)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Filtering (JEF)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Filtering (JEF)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Filtering (JEF)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Filtering (JEF)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Filtering (JEF)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Filtering (JEF)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Filtering (JEF)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Filtering (JEF)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Filtering (JEF)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
修复
- 原版属性过滤器在通过逆向 ID 查找之前,会先根据其注册表对象识别内置属性
新增
- 比较器:
!=/<>(不等于)、~(约等于)、a..b(闭区间)以及链式边界条件(如5<!ad<=10) - 物品属性过滤支持
!,不再仅限于数据属性:!durability、!damage、!remaining!maxstack!enchantability、!repaircost!nutrition、!saturation!burntime!enchantments、!ench:<id>(例如!ench:sharpness>=4)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧