正则表达式搜索
在世界中搜索物品。你可以按名称、模组、ID、标签和工具提示进行搜索。
高亮显示世界中匹配的物品,以便你轻松找到它们。
功能
不同的搜索模式
- 正则表达式:使用正则表达式进行搜索
- 扩展:使用扩展符号进行搜索,详见下文
- 字面量:使用普通文本进行搜索
高亮物品
- 匹配查询结果的物品会被高亮显示
- 可以穿透墙壁看到
- 显示物品所在的容器类型
搜索选项
使用方法
按下 Y(可配置)打开搜索界面
按 Enter 键执行搜索
清空搜索栏以移除高亮
使用上/下箭头查看搜索历史

在此处你可以选择
- 是否匹配字母大小写
- 是否记住上次搜索内容
- 在方块、实体或两者中搜索
- 选择搜索模式
扩展符号
扩展符号允许你通过使用不同的前缀来指定要匹配的特定属性。
@mod 匹配来自模组 mod 的所有物品
*id 匹配物品 ID 中包含 id 的所有物品
$tag 匹配物品的标签
#tooltip 匹配物品的工具提示
name 匹配物品的名称
-negate 匹配所有不匹配 negate 的内容
^word 匹配属性以 word 开头的物品
word$ 匹配属性以 word 结尾的物品
示例
@minecraft
匹配所有来自 minecraft 的内容。同时也匹配 minecraft2、not_minecraft 等模组中的物品。
*^redstone
匹配 ID 以 redstone 开头的物品
-#a
匹配工具提示中不包含字母 a 的所有物品
^sword$
仅匹配名称恰好为 sword 的物品
服务端配置
int range 向各个方向搜索的范围
int recursionLimit 搜索嵌套的层级数,设为 -1 表示无限制
int maxInventories 返回的最大容器数量,设为 -1 表示无限制
int maxSearchResults 返回的物品总数,设为 -1 表示无限制
int maxSearchResultsPerInventory 单个容器内返回的物品最大数量,设为 -1 表示无限制
Regex Search
Search for items in the world. You can search by name, mod, id, tags and tooltips.
Highlights matching items in the world so you can easily find them.
Features
Different search modes
- Regex: Search using regular expressions
- Extended: Search using extended notation, see below
- Literal: Search with normal text
Highlight items
- Items matching your query gets highlighted
- Can be seen through walls
- Show what kind of container the item lies in
Search options
- Search in blocks, entities, or both
- Match or ignore letter case
How to use
Open search screen using Y (configurable)
Press enter to search
Clear search field to remove highlights
Use up/down arrows for search history

Here you can select
- Whether to match or ignore letter case
- If your last search will be remembered
- Search in blocks, entities, or both
- Select search mode
Extended notation
Extended notation allows you to specify which attribute to match by using different prefixes.
@mod Matches all items from the mod mod
*id Matches all items whose item id contains id
$tag Matches the item's tags
#tooltip Matches the item's tooltip
name Matches the item's name
-negate Matches everything that does not match negate
^word Matches items whose attribute starts with word
word$ Matches items whose attribute ends with word
Examples
@minecraft
Matches everything from minecraft. Also matches items from minecraft2 not_minecraft etc.
*^redstone
Matches items whose id starts with redstone
-#a
Matches all items whose tooltip does not contain the letter a
^sword$
Matches only items whose name is exactly sword
Server-side config
int range Search range in all directions
int recursionLimit How many levels of nesting to search, -1 for no limit
int maxInventories Max number of containers to return, -1 for no limit
int maxSearchResults Total number of items to return, -1 for no limit
int maxSearchResultsPerInventory -1 for no limit
评论 0
登录后参与评分
还没有评论,来抢沙发吧