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 |
评论 0
登录后参与评分
还没有评论,来抢沙发吧