Locate Plus
查找任意方块、实体或物品,而不仅仅是结构。扫描、调查、检查并安全地将你传送至目标位置。仅服务端运行,无需安装客户端。
命令
| 命令 | 功能 |
|---|---|
| /lp | 游戏内命令列表 |
| /locate block <id|#tag> [<n> chunks|blocks] | 最近的匹配方块 |
| /locate entity <id|#tag> [<n> chunks|blocks] | 最近的匹配实体 |
| /locate item <id|#tag> [<n> chunks|blocks] [export] | 在箱子、地面、生物和玩家身上查找物品 |
| /locate biome|structure|poi <id|#tag> | 原版搜索,附带安全传送按钮 |
| /lp inspect <x> <y> <z> | 红石、光照、生物生成、作物、容器、实体数据 |
| /safetp [targets] <destination> | 传送到一个真正可以站立的地点 |
| /glow <target> <n> chunks|blocks | 穿透地形显示实体轮廓 |
| /lp analyze blocks|entities|both [<n> chunks|blocks] [export] | 调查一个区域 |
| /lp visualize <n> chunks|blocks [seconds] | 显示扫描将覆盖的区域轮廓 |
| /lp stop | 停止任何正在运行的扫描 |
| /lp clear [all|both|glow|markers] | 清除此模组显示的内容 |
| /lp config and /lp reload | 显示设置,或重新读取配置文件 |
默认权限等级为 2。对大多数命令添加 forceload 以包含未加载的区块。
半径
- 不指定时,命令覆盖所有已加载的区块,通常是你周围几百个区块。
- 单位是必需的且必须为复数。例如“64 blocks”或“4 chunks”,绝不能单独使用数字“64”。
- 区块半径指的是范围,而非总数。4 个区块半径覆盖 49 个区块,20 个区块半径覆盖 1,257 个区块。 使用 0 个区块半径仅覆盖你当前所在的区块。
- 它覆盖的是一个圆形区域,因此角落会被裁剪,且不会报告超出你指定范围的任何内容。
- 仅限水平方向。世界的全高度始终包含在内。
- 上限为 1,000 个区块和 16,000 个方块,均可配置。存在上限是因为面积随半径的平方增长。
目标接受 ID、标签或选择器:minecraft:zombie、#minecraft:skeletons、@e、 @e[type=minecraft:creeper]。来自其他模组的 ID 可在任何命名空间中使用。搜索一个标签会列出每种匹配类型及其各自的计数和传送按钮。
除非你要求,否则不会强制加载任何内容。在没有 forceload 的情况下,扫描仅读取内存中已有的内容,且永远不会生成地形。跳过的区块会被计数并报告。
大型扫描会先发出警告,然后跨多个游戏刻(ticks)分片运行,从而确保服务器不会卡死。
标记
/locate block 会勾勒出其最近命中方块的轮廓,你可以穿透地形看到它,因此埋在地下的目标无论你在哪里着陆都能看见。
该轮廓是一个玻璃材质的复制品,大小与实际方块一致,略微放大以便刚好位于真实方块面之外,避免闪烁。它是一个显示实体(display entity),因此没有碰撞箱,也不会撞进去。附近的任何人可以看到它,与 /glow 相同,因为发光属于实体状态。
当你挖掘或替换该方块后一分钟,或执行 /lp clear 时,标记会消失。如果服务器异常停止后留下的任何标记,会在世界再次加载的瞬间被删除。
| 设置项 | 作用 |
|---|---|
| mark_located_blocks | 完全关闭轮廓显示 |
| block_marker_seconds | 设为 0 表示没有时间限制 |
| block_marker_fill | 由什么方块构成,必须是可渲染的方块 |
| block_marker_colour | 十六进制代码或染料名称 |
屏障方块(Barrier)、光源(Light)和结构虚空(Structure Void)不会绘制任何内容,因此会被拒绝并在日志中给出提示。
传送
/safetp 将你传送到最近的可行走位置,并使你面向目标。台阶、楼梯、路径和浅水都算作可行走区域。聊天中的 [Teleport] 按钮也使用此功能。
如果确实没有任何地方可以站立(例如被实心岩石密封的位置),你仍会被发送到确切坐标,并被告知未经过检查。fallback_to_vanilla_tp 可禁用此行为。
按钮有两个开关,因为结果不同。方块、实体和物品的结果指向实际存在的物体,因此 safe_teleport_from_results 涵盖这些情况。生物群系、结构和 POI 的结果指向某个地点而非具体方块,因此 safe_teleport_from_biome_results 涵盖这些情况。将它们设置为 false 则使用普通的 /tp 命令。
导出
作为文本文件写入 config/locate-plus/exports/,在后台线程中运行。聊天窗口显示前 60 种类型,并说明遗漏了多少数量,这由 chat_results_shown 控制。添加 export 参数可获取包含每个坐标的完整列表。
四个开关决定哪些方块会列出坐标。每种类型都会被计数。
| 开关 | 列出 | 默认值 |
|---|---|---|
| export_modded_blocks | 来自其他模组的内容 | 开启 |
| export_placed_blocks | 玩家可放置的原版方块 | 开启 |
| export_notable_blocks | 矿石、刷怪笼、紫水晶和其他稀有发现 | 关闭 |
| export_natural_blocks | 普通地形:石头、泥土、水 | 关闭 |
任何组合均可工作。模组方块按共享标签排序,因此模组矿石计为矿石,模组石头计为地面。没有标签的被视为已放置,这对机器和管道来说是正确的。
/locate item
查看包括模组容器在内的所有容器、嵌套在其他容器中的潜影盒、地面上的物品、生物装备、物品展示框、玩家背包和末影箱。结果按位置分组,堆叠最大的排在前面,每行说明是什么持有它们。
其中任何一项都可以在配置中关闭。如果你的服务器将玩家背包视为私有,那么关闭此项很有价值。
其他事项
- 发光效果和方块标记持续一分钟。
- 命令输出是私有的。结果仅发送给执行命令的人,因此坐标永远不会公开广播。例外情况是发光效果,因为它属于实体状态,无法仅向一名玩家展示,所以附近的任何人都能看到。glow_located_entities 可关闭此行为。
在你不拥有的服务器上安装
你做不到。所有命令都会注册到服务器的命令树中,每次扫描读取的都是服务器端的副本世界。将 JAR 文件放入你自己的模组文件夹中,加入别人的服务器,你将一无所获:你的客户端以纯文本形式发送命令,而没有安装该模组的服务器会回复“未知或不完整的命令”。不会进行透视,因为客户端从未执行查看操作。
这也是为什么不需要安装客户端的原因。
配置
config/locate-plus/config.json,在首次启动时生成。允许带有注释的 JSON 格式,每个设置都在文件中进行了说明。编辑后运行 /lp reload 或重启即可生效。
权限级别、可用命令、默认半径、/locate item 搜索的内容、每刻(tick)可用于扫描的时间以及模组应用的所有限制。运行 /lp config 可打印当前加载的配置。
如果文件存在语法错误,则保留原样并在日志中报告,因此拼写错误永远不会导致你丢失设置。超出范围的值会被自动限制(clamp),而不是被拒绝。
默认值
/locate radius |
64 格 |
/lp analyze radius |
4 区块 |
| 权限级别 | 2(OP,或单人游戏中的作弊模式) |
| 扫描预算 | 每刻 8 毫秒 |
Locate Plus
Find any block, entity or item, not just structures. Scans, surveys, inspects and teleports you there safely. Server-side only, no client install needed.
Commands
| Command | What it does |
|---|---|
| /lp | In-game command list |
| /locate block <id|#tag> [<n> chunks|blocks] | Nearest matching block |
| /locate entity <id|#tag> [<n> chunks|blocks] | Nearest matching entity |
| /locate item <id|#tag> [<n> chunks|blocks] [export] | Find an item in chests, on the ground, on mobs and on players |
| /locate biome|structure|poi <id|#tag> | Vanilla searches, with a safe-teleport button |
| /lp inspect <x> <y> <z> | Redstone, light, mob spawning, crops, containers, entity data |
| /safetp [targets] <destination> | Teleport somewhere you can actually stand |
| /glow <target> <n> chunks|blocks | Outline entities through terrain |
| /lp analyze blocks|entities|both [<n> chunks|blocks] [export] | Survey an area |
| /lp visualize <n> chunks|blocks [seconds] | Outline the area a scan would cover |
| /lp stop | Stop any scan that is running |
| /lp clear [all|both|glow|markers] | Clear what this mod is showing |
| /lp config and /lp reload | Show settings, or re-read the config file |
Permission level 2 by default. Add forceload to most commands to include unloaded chunks.
Radius
- Leave it off and the command covers every loaded chunk, usually a few hundred around you.
- The unit is required and plural. 64 blocks or 4 chunks, never a bare 64.
- A chunk radius is a reach, not a total. 4 chunks is 49 chunks, 20 chunks is 1,257. Use 0 chunks for just the one you are standing in.
- It covers a circle, so the corners get trimmed and nothing reported is further than you asked.
- Horizontal only. The full height of the world is always included.
- Caps are 1,000 chunks and 16,000 blocks, both configurable. They exist because the area grows with the square of the radius.
Targets take ids, tags or selectors: minecraft:zombie, #minecraft:skeletons, @e, @e[type=minecraft:creeper]. Modded ids work in any namespace. Searching a tag lists each matching type with its own count and teleport button.
Nothing is force-loaded unless you ask. Without forceload a scan reads only what is already in memory and never generates terrain. Skipped chunks get counted and reported.
Large scans warn you first, then run sliced across ticks so they never freeze the server.
Markers
/locate block outlines its nearest hit, and you can see it through terrain, so a buried target is visible from wherever you land.
The outline is a glass copy of the block at its real size, slightly oversized so it sits just outside the real faces instead of flickering. It is a display entity, so no hitbox and nothing to walk into. Anyone nearby can see it, same as /glow, because glowing is entity state.
It clears when you mine or replace the block, after a minute, or on /lp clear. Any marker left behind by a server that stopped badly is deleted the moment the world loads again.
| Setting | Does |
|---|---|
| mark_located_blocks | turn outlining off entirely |
| block_marker_seconds | 0 for no time limit |
| block_marker_fill | what it is made of, must be a block that renders |
| block_marker_colour | hex code or a dye name |
Barrier, light and structure void draw nothing, so they are refused with a note in the log.
Teleporting
/safetp puts you at the nearest spot you can stand and turns you to face the target. Slabs, stairs, paths and shallow water all count. The [Teleport] buttons in chat use it too.
If there is genuinely nowhere to stand, like a spot sealed in solid rock, you get sent to the exact coordinate anyway and told it was not checked. fallback_to_vanilla_tp turns that off.
The buttons have two switches because the results are different. Block, entity and item results point at something real, so safe_teleport_from_results covers those. Biome, structure and poi results point at a place rather than a block, so safe_teleport_from_biome_results covers those. Set either to false for a plain /tp.
Exports
Written to config/locate-plus/exports/ as a text file, on a background thread. Chat shows the top 60 types and says how many were left out, which chat_results_shown changes. Add export for the full list with every coordinate.
Four switches decide which blocks get coordinates listed. Every type is counted either way.
| Switch | Lists | Default |
|---|---|---|
| export_modded_blocks | anything from another mod | on |
| export_placed_blocks | vanilla blocks a player could place | on |
| export_notable_blocks | ores, spawners, amethyst and other rare finds | off |
| export_natural_blocks | ordinary terrain: stone, dirt, water | off |
Any combination works. Modded blocks get sorted by the tags mods share, so a modded ore counts as an ore and a modded stone counts as ground. One with no tags is treated as placed, which is right for machines and pipes.
/locate item
Looks in containers including modded ones, shulker boxes inside other containers, items on the ground, mob equipment, item frames, player inventories and ender chests. Results are grouped by location, biggest pile first, and each line says what is holding them.
Any of those can be switched off in the config. Worth doing for player inventories if your server treats those as private.
Other things
- Glow and block markers last one minute.
- Command output is private. Results go only to whoever ran the command, so coordinates are never announced. The exception is glowing, which is entity state and cannot be shown to one player, so anyone nearby sees it. glow_located_entities turns that off.
Installing it on a server you do not own
You cannot. Every command is registered into the server's command tree and every scan reads the server's copy of the world. Put the jar in your own mods folder, join someone else's server, and you get nothing: your client sends the command as plain text and a server without the mod answers "Unknown or incomplete command". Nothing is x-rayed, because the client is never doing the looking.
That is also why no client install is needed.
Configuration
config/locate-plus/config.json, written on first start. JSON with comments allowed, and every setting is explained in the file. Edit it and run /lp reload, or restart.
Permission level, which commands exist at all, default radii, what /locate item searches, how much of each tick scans may use, and every limit the mod applies. /lp config prints what is currently loaded.
A file with a syntax error is left alone and reported in the log, so a typo never costs you your settings. Out-of-range values get clamped rather than rejected.
Defaults
| /locate radius | 64 blocks |
| /lp analyze radius | 4 chunks |
| Permission level | 2 (OP, or cheats in singleplayer) |
| Scan budget | 8 ms per tick |
下载 Locate Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Locate Plus
下载 Locate Plus
下载 Locate Plus
下载 Locate Plus
下载 Locate Plus
下载 Locate Plus
下载 Locate Plus
下载 Locate Plus
下载 Locate Plus
2.2.2
已修复
-
使用
forceload进行搜索时,崩溃或强制停止后可能导致区块被永久强制加载,并可能干扰管理员在扫描期间强制加载的区块。现有条目保持不变,因为它们无法与你选择的条目区分开来。现在搜索使用独立的临时票据,这些票据不会保存到世界的强制加载区块列表中,也不会释放管理员的票据。 -
同时运行两个实体搜索可能会导致它们漏检已加载区块中的实体。现在每个搜索都会独占其加载的区块,并在检查之前等待其中的实体加载完毕。
-
/lp inspect在某些新版 Minecraft 中可能将正在燃烧的熔炉报告为未燃烧,并以错误格式显示 Brew Stand(酿造台)燃料。现在它正确地显示熔炉状态和进度,并将酿造台燃料以数字形式显示。 -
当地面是栅栏或墙时,
/safetp可能会将你传送到方块内部。因为这些结构实际比看起来高半格,你的脚会停在高于先前检查的两个方块的位置,导致上方三格高的空间穿过头部。现在玩家实际占据的空间是从脚落地处开始计算的,因此如果某位置有障碍物,则会被跳过而选择无障碍位置。在有足够头顶空间的情况下,站在栅栏顶部仍然有效。 -
/lp clear和发光计时器移除了因其他原因(例如spectral arrow或数据包)已经发光的生物的发光效果。现在模组会保留原本已经发光的生物的状态,仅关闭由该模组自身开启的发光效果。 -
当物品、盔甲架或船通过传送门时,如果它们在进入前处于发光状态,则会一直保持发光,因为计时器只在初始世界中查找它们。现在计时器会在所有世界中查找,确保无论物品最终出现在哪个世界,发光效果都能正确移除。
-
/lp config曾报告/safetp最多可检查 2,000,000 个位置。实际上该搜索从未能查看超过 35,937 个位置,因此现在配置文件中显示的数值即为实际使用的最大值,设置更大的值也不再看似生效。
新增
- 支持 Fabric 上的 Minecraft 1.21.11 及 26.1 至 26.1.2 版本。
2.2.1
已修复
- 对实体或物品的强制加载搜索可能返回空结果。此前系统会先载入区块并进行搜索,而一旦扫描进度远超某个区块,该区块就会被释放。因此在大型扫描中,最早被载入的区块可能在任何内容被检查前就已卸载,导致数百个区块未被正确处理,甚至有报告称整个世界变为空世界。现在改为在区块仍被持有时以批次方式进行搜索,因此结果不再依赖于扫描半径。
2.2.1
已修复
- 对实体或物品的强制加载区域搜索可能返回空结果。此前系统会先载入区块并进行搜索,且在扫描操作大幅超越某区块后便会释放该区块;因此在大范围搜索时,最早载入的区块可能在被检查前就被释放了。少数几百个区块因此漏检,而上千个区块则报告为“世界为空”。现在改为在区块仍被持有时按批次进行搜索,因此搜索结果不再受搜索半径影响。
2.2.1
已修复
- 对实体或物品的强制加载区域搜索可能返回空结果。此前系统会先载入区块并进行搜索,且在扫描操作大幅超越某区块后便会释放该区块;因此在大范围搜索时,最早载入的区块可能在被检查前就被释放了。少数几百个区块因此漏检,而上千个区块则报告为“世界为空”。现在改为在区块仍被持有时按批次进行搜索,因此搜索结果不再受搜索半径影响。
2.2.1
修复
- 对实体或物品进行强制加载区域搜索时,可能会返回空结果。此前会先提取区块并进行搜索,而一旦扫描区域远远超出某个区块,该区块就会被释放。因此在进行大范围扫描时,最早被提取的区块可能在任何内容被检查之前就已经被释放了。这导致几百个区块的问题未被察觉,但上千个区块的报告却显示为空白世界。现在改为在区块仍被持有时按批次进行搜索,因此搜索结果不再依赖于扫描半径。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧