promotional bannermobile promotional banner

[SBW]Drone Detector

A lightweight Forge 1.20.1 mod that turns a handheld (or inventory) detector into a minimal HUD listing nearby UAVs with names and approximate distance, beeping only for the closest, with server-controlled range and custom sound.

File Details

drone_detector-1.1.0.jar

  • R
  • Nov 9, 2025
  • 62.83 KB
  • 36.9K
  • 1.20.1
  • Forge

File Name

drone_detector-1.1.0.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:sbw-drone-detector-1331484:7202053")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

[1.1.0]

Critical Fixes

  • FIXED: Detection range now works correctly (was detecting beyond configured range)

    • Added proper distance check using distanceToSqr() instead of relying on AABB inflation
    • Detector now respects the exact radius configured in serverconfig
  • FIXED: Detector toggle now works consistently

    • Cache invalidation added when switching detector on/off
    • No more "works every other time" issue
  • FIXED: Entity tag IDs corrected in drone_targets.json

    • Changed from non-existent IDs to actual Superb Warfare entities: superbwarfare:drone, superbwarfare:swarm_drone
    • Resolved "Couldn't load tag" errors

Major Changes

  • REMOVED: Lock-On system for instant detection

    • Drones now appear immediately when entering range
    • No more gradual "signal acquisition" delay
  • REMOVED: Active drone filtering

    • All drones detected regardless of movement state
    • Parked/idle drones now visible
  • CHANGED: Drone display now shows team name instead of owner name

    • Format: "TeamName Drone" (e.g., "NATO Drone", "OKS Drone")
    • Falls back to "PlayerName's Drone" if no team assigned
    • Shows "Drone (offline)" if owner is offline

New Features

  • ADDED: Configurable signal-transparent blocks (server-side)

    • Default: All leaves, glass blocks allow signal through
    • Only applies when requireLineOfSight = true
    • Configure in serverconfig/drone_detector-server.toml
  • ADDED: Full English translation

    • HUD text: "Nearest UAV: ≈Xm", "No UAVs Detected"
    • Config comments translated

Performance Optimizations

  • Scan Throttling: 75% reduction in entity queries (20 Hz → 4 Hz)
  • Detector State Caching: 97% reduction in inventory scans
  • Object Pooling: 90%+ reduction in allocations
  • AABB Caching: Search box reused when range unchanged

Configuration Changes

  • requireLineOfSight defaults to false (detect through all blocks)
  • signalTransparentBlocks list added (leaves, glass by default)
  • Weather effects on range remain enabled by default

Technical Details

  • Compatible with Minecraft 1.20.1, Forge 47.2.x
  • Requires server-side installation for multiplayer
  • Client config: config/drone_detector-client.toml
  • Server config: serverconfig/drone_detector-server.toml

[1.0.1] - Previous Version

  • Initial release with basic UAV detection
  • Animated detector item using GeckoLib
  • Bottom-right HUD with target list
  • Proximity-based beeping system
  • Superb Warfare integration

[1.0.0] - Initial Release

  • Basic drone detection functionality