Hopper Lock Visualizer
建造了物品分类器却无法正常运作?你的某个漏斗可能接收到了意外的红石信号。 这款客户端模组会在你附近的每个上锁漏斗周围包裹一层醒目的红色轮廓,让你一眼就能找出罪魁祸首。
“上锁”的含义
漏斗由 enabled 方块属性控制,拥有两种状态:
- 启用(默认): 从上方吸入物品,并通过漏斗口推出物品。正常行为。
- 禁用(上锁): 冻结状态。完全停止物品传输。当任何红石信号到达漏斗时触发——例如红石火把、压力板、比较器,或是来自邻近电路的 stray wire(杂散线路)……
当大型机械装置停止工作时,十有八九是因为漏斗意外接收到了附近来源的红石信号。此模组让这种不可见的问题变得可见。
功能特性
- 一键切换 — 默认按键为
H(可在“选项 > 控制”中重新绑定)
- 32 格半径扫描 — 围绕玩家进行,每秒刷新两次
- 智能剔除 — 基于距离和锥形视野检查,仅渲染视野内的漏斗
- 使用 Minecraft 1.21.11 的新 Gizmo API 绘制红色线框
- 仅客户端 — 适用于任何服务器,无需服务端安装
- 零配置 — 安装后按下 H 即可
使用方法
- 安装本模组以及 Fabric API
- 将两者放入
.minecraft/mods/ 文件夹
- 启动 Minecraft,加入任意世界或服务器
- 按下 H → 附近的上锁漏斗会被红色轮廓包裹
- 再次按下 H 以禁用
兼容性
| 功能 |
支持情况 |
| Minecraft |
1.21.11 |
| 加载器 |
Fabric (Loader 0.18.0+) |
| Fabric API |
必需 |
| Java |
21+ |
| 端侧 |
仅客户端 |
未测试
- Quilt: 未经过测试,但由于 Quilt 兼容 Fabric 模组,应当可以正常工作
- Forge/NeoForge: 不支持
性能
扫描每秒运行 2 次,而非每帧运行。每次扫描仅读取方块状态(不读取方块实体或库存),因此即使在拥有数百个漏斗的大型基地中,额外开销也可忽略不计。渲染阶段在调用 Minecraft 的 Gizmo API 之前会先进行距离和锥形检查剔除 — 无需手动矩阵运算,也不会出现状态泄漏
Hopper Lock Visualizer
Built an item sorter and something isn't working? One of your hoppers is probably receiving an unintended redstone signal. This client-side mod wraps every locked hopper near you in a bright red outline, so you can spot the culprit at a glance.
What "Locked" Means
A hopper has two states controlled by the enabled block property:
- Enabled (default): pulls items in from above, pushes items out the spout. Normal behavior.
- Disabled (locked): frozen. Completely stops item transfer. Triggered by any redstone signal reaching the hopper — a torch, a pressure plate, a comparator, a stray wire from a neighboring circuit...
When a big contraption stops working, 9 times out of 10 the cause is a hopper accidentally receiving a redstone signal from something nearby. This mod makes that invisible problem visible.
Features
- One-key toggle — default
H (rebindable in Options > Controls)
- 32-block radius scan around the player, refreshed twice per second
- Smart culling — distance + cone-based visibility check, so only hoppers in view get drawn
- Red wireframe rendering using Minecraft 1.21.11's new Gizmo API
- Client-only — works on any server, no server-side install needed
- Zero configuration — install and press H
Usage
- Install this mod and Fabric API
- Drop both into your
.minecraft/mods/ folder
- Launch Minecraft, join any world or server
- Press H → nearby locked hoppers get wrapped in a red outline
- Press H again to disable
Compatibility
| Feature |
Support |
| Minecraft |
1.21.11 |
| Mod Loader |
Fabric (Loader 0.18.0+) |
| Fabric API |
Required |
| Java |
21+ |
| Side |
Client-only |
Untested
- Quilt: Not tested, but should work since Quilt supports Fabric mods
- Forge/NeoForge: Not supported
Performance
The scan runs 2× per second, not every frame. Each scan reads block states only (no block entities, no inventories), so even in large bases with hundreds of hoppers the overhead is negligible. The render pass culls with distance + cone checks before calling Minecraft's Gizmo API — no manual matrix math, no state leaks
评论 0
登录后参与评分
还没有评论,来抢沙发吧