DetectorUAV — 用于 Forge 1.20.1 的无人机 proximity detector(邻近探测器)
一款轻量级且对客户端友好的模组,添加了手持式无人机探测器,配备极简 HUD(位于右下角)、自定义提示音以及由服务器控制的扫描范围。即使在物品栏中开启时也能正常工作,列出附近无人机的当前名称(当 Superb Warfare 重命名关联无人机时会更新),并显示近似距离。提示音仅针对最近的无人机触发。
✨ 特性
基于物品的探测器(通过右键点击切换开/关;状态保存在 NBT 中)。
右下角 HUD:紧凑条形图 + 列表(最多 5 个),显示名称和 ≈距离(不干扰 UI)。
仅对最近 UAV 发出提示音;音调/间隔随距离缩放。
可在物品栏中使用:如果探测器物品在背包中的任何位置处于开启状态,跟踪和 HUD 功能即可生效。
支持 Superb Warfare:每 tick 读取显示名称,因此当 SBW 重命名关联无人机时,HUD 会自动显示更新后的名称。
服务器控制半径(权威模式):在加入游戏和重新加载时同步给客户端。
客户端自定义选项:音量、音调范围、提示音周期、HUD 列表大小。
自定义音效(drone_detector:detector_beep)及字幕。
通过数据标签扩展目标列表。
? 依赖项
Minecraft:1.20.1
Forge:47.2.x
(可选)Superb Warfare(用于检测 UAV 实体)
? 安装
将模组放入客户端和服务端(多人游戏所需)。
首次启动以生成配置文件。
(可选)通过标签添加/调整 UAV 实体类型(见下文)。
⚙️ 配置
服务端(权威游戏玩法设置)
serverconfig/drone_detector-server.toml
[detector]
扫描半径(米)
range = 64.0
客户端(仅限 HUD 和音频)
config/drone_detector-client.toml
[audio]
onlyNearestBeep = true
beepMinPeriod = 6
beepMaxPeriod = 40
beepVolume = 0.8
beepPitchMinFar = 0.7
beepPitchMaxNear = 1.8
[hud]
enabled = true
listCount = 5
(HUD 默认位于右下角,以保持界面整洁)
? 自定义提示音
该模组注册了 drone_detector:detector_beep。
文件结构
assets/drone_detector/sounds.json
assets/drone_detector/sounds/detector_beep.ogg
assets/drone_detector/lang/en_us.json
assets/drone_detector/lang/ru_ru.json
sounds.json
{
"detector_beep": {
"subtitle": "subtitles.drone_detector.detector_beep",
"sounds": [{ "name": "drone_detector:detector_beep", "stream": false }]
}
}
想在不重建模组的情况下更换提示音?请使用覆盖相同路径的资源包。
? 什么被视为 UAV
默认情况下,该模组的目标是 Superb Warfare 的无人机以及下方实体类型标签中的所有内容。可通过数据包扩展以包含您自己的实体:
data/drone_detector/tags/entity_types/drone_targets.json
{
"replace": false,
"values": [
"sbw:fpv_drone",
"sbw:swarm_drone",
"superbwarfare:fpv_drone"
]
}
?️ 使用方法
制作或生成 UAV Detector 物品。
右键点击以切换开/关。
将其握在手中或放在背包中的任何位置(若已开启)以激活 HUD 和提示音。
靠近无人机:随着距离拉近,条形图会填充;列表显示当前名称和 ≈距离。
? 多人游戏与同步
服务器设置扫描半径;客户端在登录和服务器配置重载后接收该设置。
客户端仅控制 HUD 和音频。
?️ 本地化
包含 en_us、ru_ru(字幕及物品字符串)。
? 兼容性
专为 Forge 1.20.1 设计。
可与 Superb Warfare 共存;自动识别关联无人机名称的变化。
? 已知问题 / 说明
如果您的自定义 UAV 类型未被检测到,请将其实体类型添加到 drone_targets 标签中。
过大的服务器半径可能会略微增加客户端的扫描开销(默认值安全)
? 致谢与许可
作者:Liko
模组 ID:drone_detector
许可协议:Apache 2.0
? 路线图
配置中可选的 HUD 位置偏移(保持最小占用空间)。
列表中的每个实体图标(小型 16×16)。
快捷键临时静音提示音。
? 问题报告
请提供:MC 版本、Forge 版本、模组列表、日志以及复现步骤。
禁止重新上传本项目!
禁止在其他网站发布该项目!
DetectorUAV — UAV proximity detector for Forge 1.20.1
A lightweight client-friendly mod that adds a handheld UAV detector with a minimal HUD (bottom-right), a custom beep, and server-controlled scan range. Works even from the inventory when switched ON, lists nearby drones with their current names (updates when Superb Warfare renames a linked drone) and shows an approximate distance. The beep triggers only for the closest UAV.
✨ Features
Item-based detector (toggle ON/OFF via right-click; state saved in NBT).
HUD in the bottom-right corner: compact bar + list (up to 5) with name and ≈distance (doesn’t clutter the UI).
Beep only for the nearest UAV; pitch/interval scale with distance.
Works from inventory: if the detector item is ON anywhere in your inventory, tracking & HUD work.
Superb Warfare support: reads the display name each tick, so when SBW renames a linked drone, the HUD shows the updated name automatically.
Server-controlled radius (authoritative): synced to clients on join and when reloaded.
Client-only customization: volume, pitch range, beep period, HUD list size.
Custom sound (drone_detector:detector_beep) with subtitles.
Extensible target list via a data tag.
? Requirements
Minecraft: 1.20.1
Forge: 47.2.x
(Optional) Superb Warfare (for UAV entities to detect)
? Installation
Put the mod on both client and server (for MP).
Launch once to generate configs.
(Optional) Add/adjust UAV entity types via the tag (see below).
⚙️ Configuration
Server (authoritative gameplay settings)
serverconfig/drone_detector-server.toml
[detector]
Scan radius in meters
range = 64.0
Client (HUD & audio only)
config/drone_detector-client.toml
[audio]
onlyNearestBeep = true
beepMinPeriod = 6
beepMaxPeriod = 40
beepVolume = 0.8
beepPitchMinFar = 0.7
beepPitchMaxNear = 1.8
[hud]
enabled = true
listCount = 5
(HUD is bottom-right by design to keep UI clean)
? Custom beep sound
The mod registers drone_detector:detector_beep.
File layout
assets/drone_detector/sounds.json
assets/drone_detector/sounds/detector_beep.ogg
assets/drone_detector/lang/en_us.json
assets/drone_detector/lang/ru_ru.json
sounds.json
{
"detector_beep": {
"subtitle": "subtitles.drone_detector.detector_beep",
"sounds": [{ "name": "drone_detector:detector_beep", "stream": false }]
}
}
Want to swap the beep without rebuilding? Use a resource pack overriding the same path.
? What counts as a UAV
By default the mod targets Superb Warfare drones and anything in the entity type tag below. Extend it with datapacks to include your own entities:
data/drone_detector/tags/entity_types/drone_targets.json
{
"replace": false,
"values": [
"sbw:fpv_drone",
"sbw:swarm_drone",
"superbwarfare:fpv_drone"
]
}
?️ How to use
Craft/spawn the UAV Detector item.
Right-click to toggle ON/OFF.
Keep it in hand or anywhere in inventory (if ON) to activate HUD + beeps.
Approach drones: the bar fills as you get closer; the list shows current names and ≈distance.
? Multiplayer & Sync
The server sets the scan radius; clients receive it on login and after server config reloads.
Clients control only HUD & audio.
?️ Localization
en_us, ru_ru included (subtitles & item strings).
? Compatibility
Designed for Forge 1.20.1.
Works alongside Superb Warfare; recognizes linked drone name changes automatically.
? Known Issues / Notes
If your custom UAV type isn’t detected, add its entity type to the drone_targets tag.
Excessively large server radius may slightly increase client scanning costs (default is safe)
? Credits & License
Author: Liko
Mod ID: drone_detector
License: Apache 2.0
? Roadmap
Optional HUD position offset in config (keeping minimal footprint).
Per-entity icons in the list (tiny 16×16).
Keybind to temporarily mute beeps.
? Issue Reporting
Please include: MC version, Forge version, list of mods, logs, and steps to reproduce.
Reuploading this project is prohibited!
Опубликовывать проект на иных сайтах запрещено!
评论 0
登录后参与评分
还没有评论,来抢沙发吧