🔊 Akustische Echolokation & Vibrationspanik
📌 Quellcode-Hinweis: Die Dokumentation in diesem Wiki gibt den aktuellen Stand des Quellcodes im Repository wieder, einschließlich unfertiger Commits und Entwicklungsfunktionen vor der offiziellen Veröffentlichung auf CurseForge und Modrinth.
| Parameter | Specification Details |
|---|---|
| Vibration Listener Mixin | net.vanillaoutsider.betterbats.mixin.GameEventDispatcherMixin |
| Panic AI Goal Class | net.vanillaoutsider.betterbats.ai.BatPanicGoal (Goal Priority 1) |
| Vibration Trigger Events | GameEvent.EXPLODE, GameEvent.BLOCK_DESTROY, Sprinting GameEvent.STEP |
| Detection Radius | 16 blocks (AABB inflation) |
| Panic Duration | 100 ticks ($5.0\text{ seconds}$) |
| Panic Flight Response | Disperses from group, flies rapidly in opposite vector ($0.15\text{ accel}$) |
| Panic Audio | BAT_TAKEOFF (Vol 0.8, Pitch 1.0) & PHANTOM_FLAP (Vol 0.5, Pitch 0.6) |
| Echolocation Condition | Sky Light == 0 && Block Light < 4 |
☕ Solo-Entwickler-Notiz: Wenn dir die realistischen 3D-Fledermausschwärme und die Guano-Düngung deiner Felder gefallen, unterstütze mich gerne auf Ko-fi!
⚡ Schwingungswahrnehmung & Panikreaktion
Bats in roosting or calm flight states maintain high acoustic sensitivity. Loud game events (explosions, mining stone, sprinting players) within a 16-block radius immediately trigger BatPanicGoal at top priority. Bats disengage from roosts, break flock cohesion, and scatter away from the disturbance source at boosted flight speeds.
🦇 Echolokations-Impulse & Partikel
In deep, unlit caves (Sky Light == 0 and Block Light < 4), bats emit periodic echolocation clicks. Each click emits subtle ParticleTypes.SCULK_SOUL particles forward from the bat's head, simulating biological sonic navigation in pitch darkness.
Next: Sounds & visuelle Partikel | Verhaltensprofile & Status
