Structure Eyes
将任意物品变成用于定位任何结构的末影之眼。
Structure Eyes 允许你将一个物品——原版或模组添加的——分配给指向你选择的特定结构。右键点击该物品,它会像原版末影之眼一样发射:漂浮向最近匹配的结构,悬停片刻后掉落,为玩家提供大致的行进方向。
此模组专为整合包开发者设计。无需编写 Java 代码、无需重启游戏,也没有复杂的设置流程——你可以直接从游戏内菜单或单个配置文件中将物品与结构进行关联。
功能特性
- ? 任意物品 → 任意结构。 使用
minecraft:ender_eye、模组饰品或其他任何物品来定位村庄、要塞、模组地牢——随你所需。
- ? 真实的末影之眼行为。 复用原版的末影之眼逻辑,因此飞行轨迹、抛物线和掉落效果与原版完全一致——而且飞行的“眼睛”还会显示你的物品的纹理。
- ⚙️ 两种配置方式: 适合新手的图形化配置菜单,或供高级用户使用的数据包 JSON 以获取更精细的控制。
- ♻️ 可重复使用或消耗品。 选择物品在使用后是否被消耗,并可设置可选的冷却时间。
- ? 跨维度感知。 可将物品指向下界、主世界或模组维度中的结构。如果玩家在不正确的维度中使用,会收到一条提示消息(可切换开启/关闭),而不是毫无反应。
- ?️ 支持结构标签。 可以指向单个结构、通过
#tag 指向整个组,或指向列表。
- ? 实时重载。 更改可通过
/reload 命令立即生效——无需重新启动游戏。
使用方法(简单模式)
无需操作文件。在游戏中执行以下步骤:
- 按 Esc → Mods → Structure Eyes → Config
- 打开 Item to Structure Mappings(物品到结构映射) 并点击 +
- 输入一行内容并点击 Done(完成):
minecraft:ender_eye > #minecraft:village
将其读作一句话即可理解:“ender_eye 寻找村庄。”
若要限制其仅在某个维度内有效,请在末尾添加 @ <dimension>:
minecraft:blaze_rod > minecraft:fortress @ minecraft:the_nether
行格式说明: <item> > <structure> (可选 @ <dimension>)
- ID 格式如
modid:name(例如 minecraft:ender_eye)。
- 在结构前加上
# 表示匹配整个组,例如 #minecraft:village。
你也可以直接在 config/structureeyes-common.toml 中编辑这些行——这是整合包通常分发的配置文件。所有配置行的消耗/冷却/搜索半径默认值均来自 [defaults] 部分。
进阶用法:数据包映射
如需对每个物品进行独立控制(例如不同的消耗/冷却/提示信息),请在以下路径下添加 JSON 文件:
data/<your_namespace>/structureeyes/structure_eyes/<name>.json
{
"item": "minecraft:ender_eye",
"target": "#minecraft:village",
"search_radius": 100,
"consume_on_use": true,
"cooldown_ticks": 0,
"dimension": "minecraft:overworld"
}
配置文件行与数据包映射可同时存在——任选其一,或两者兼用。
注意事项
- 默认情况下不包含任何映射——在你分配物品之前它不会执行任何操作,因此开箱即用绝不会干扰原版物品。
- 定位过程在服务端运行,因此单人游戏和专用服务器均可正常工作。
- 结构只能在其生成的维度中被定位(这就是跨维度提示消息的作用所在)。
Structure Eyes
Turn any item into an Eye of Ender for any structure.
Structure Eyes lets you assign an item — vanilla or modded — to point toward a structure of your choice. Right-click the item and it launches like a vanilla Eye of Ender: it floats toward the nearest matching structure, hovers, and drops, giving players the general direction to travel.
It's built for modpack developers. There's no Java, no restart, and no complicated setup — you assign items to structures right from an in-game menu or a single config file.
Features
- ? Any item → any structure. Use
minecraft:ender_eye, a modded trinket, or anything else to locate villages, fortresses, modded dungeons — whatever you want.
- ? Real Eye of Ender behavior. Reuses vanilla's Eye of Ender, so the flight, arc, and drop feel exactly like the real thing — and the flying eye even shows your item's texture.
- ⚙️ Two ways to set it up: a beginner-friendly config menu, or datapack JSON for advanced control.
- ♻️ Reusable or consumable. Choose whether an eye is used up on use, and set an optional cooldown.
- ? Cross-dimension aware. Point an item at a Nether, End, or modded-dimension structure. If a player uses it in the wrong dimension, they get a helpful message instead of nothing (toggleable).
- ?️ Structure tags supported. Point at a single structure, a whole group via a
#tag, or a list.
- ? Live reload. Changes apply with
/reload — no need to restart the game.
How to use it (the easy way)
No files required. In-game:
- Press Esc → Mods → Structure Eyes → Config
- Open Item to Structure Mappings and click +
- Type one line and click Done:
minecraft:ender_eye > #minecraft:village
Read it like a sentence: "ender_eye finds village."
To restrict it to one dimension, add @ <dimension> on the end:
minecraft:blaze_rod > minecraft:fortress @ minecraft:the_nether
Line format: <item> > <structure> (optionally @ <dimension>)
- IDs look like
modid:name (e.g. minecraft:ender_eye).
- Put
# before a structure to match a whole group, e.g. #minecraft:village.
You can also edit these lines directly in config/structureeyes-common.toml — this is the file modpacks ship. Consume / cooldown / search radius for all config lines come from the [defaults] section.
Advanced: datapack mappings
For per-item control (different consume/cooldown/message per item), add JSON files under:
data/<your_namespace>/structureeyes/structure_eyes/<name>.json
{
"item": "minecraft:ender_eye",
"target": "#minecraft:village",
"search_radius": 100,
"consume_on_use": true,
"cooldown_ticks": 0,
"dimension": "minecraft:overworld"
}
Config lines and datapack mappings work side by side — use whichever fits, or both.
Notes
- Ships with no default mappings — it does nothing until you assign items, so it never interferes with vanilla items out of the box.
- Locating happens server-side, so it works in singleplayer and on dedicated servers.
- Structures can only be located in the dimension they generate in (that's what the cross-dimension message is for).
评论 0
登录后参与评分
还没有评论,来抢沙发吧