dougbot/bridge
roberts c2b996947a Fix combat loop, add equipment management
Combat:
- Track entityGone event to detect mob death (not just entity check)
- Auto-equip best weapon before fighting
- 10-second cooldown between engagements (was 5)
- Better target death detection

Equipment system:
- equipBestWeapon(): finds and equips highest-tier sword/axe
- equipBestTool(blockType): picks right tool for block (pickaxe for stone, etc.)
- equipBestArmor(): equips best armor in each slot
- Auto-equip armor when new armor pieces appear in inventory
- Weapon tiers: netherite > diamond > iron > golden > stone > wooden
- Tool type mapping: pickaxe for ores, axe for wood, shovel for dirt

New bridge actions: equip_best_weapon, equip_best_tool, equip_armor

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 17:39:47 -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, add equipment management 2026-03-30 17:39:47 -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