dougbot/bridge
roberts 7363e8589f Fix combat loop: blacklist entities for 30s after engagement
The core problem: attacks don't deal damage (protocol issue), so
mobs never die. entityGone fires spuriously, combat "ends", then
the 2-second scan finds the same mob and re-engages endlessly.

Fix: after combat ends for ANY reason, the entity ID is blacklisted
for 30 seconds. The scan loop skips blacklisted entities. This
prevents the infinite re-engage loop.

The underlying damage issue still needs investigation, but at least
Doug won't get stuck in an endless combat loop anymore.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:36:05 -05:00
..
lib FIX COMBAT: swing_source='attack' required for damage registration 2026-03-30 17:05:57 -05:00
patches Phase 1 complete: Doug connects, chats with personality 2026-03-30 02:03:25 -05:00
src Fix combat loop: blacklist entities for 30s after engagement 2026-03-30 20:36:05 -05:00
.gitignore Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
package-lock.json Rebuild bridge on mineflayer-bedrock — real movement! 2026-03-30 11:56:56 -05:00
package.json Rebuild bridge on mineflayer-bedrock — real movement! 2026-03-30 11:56:56 -05:00
tsconfig.json Phase 1 complete: Doug connects, chats with personality 2026-03-30 02:03:25 -05:00