DougBot is a revamp of the CletusBot for Minecraft. Cletus failed. He was a Java bot, and he was not successful. With Doug, I am hoping to convert to Bedrock and push the boundaries of this concept to make a minecraft bot that will actually play and interact.
Find a file
roberts aa0a937171 CORE REFLEX: Auto-combat and auto-equip baked into bridge
Architecture change — 3 layers:
  CORE (bridge): Combat + equipment evaluation — ALWAYS runs, interrupts everything
  PRIMARY (brain): Player-given or self-directed goals
  SUBTASK (brain): Steps within primary tasks

Core reflexes in bridge (run independently of Python brain):
- Auto-combat: scans for hostiles every 2s, engages nearest
  - Equips best weapon before fighting
  - Chases target, attacks every 450ms
  - Detects death via entityGone event
  - 15s safety timeout per engagement
  - Sends combat_started/combat_ended events to Python

- Auto-equip: evaluates gear when items are picked up
  - Equips best weapon (netherite > diamond > iron > ...)
  - Equips best armor in each slot
  - Waits until combat ends before evaluating
  - Sends equipment_changed event to Python

Brain changes:
- Brain PAUSES all task execution during combat (waits for combat_ended)
- Brain no longer manages combat — only flee for cowardly Dougs (bravery < 30)
- Combat events logged: COMBAT: Fighting zombie, COMBAT: Ended (target_dead)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:12:56 -05:00
.claude Phase 3: Task queue, behavior engine, trait-driven decisions 2026-03-30 12:48:15 -05:00
bridge CORE REFLEX: Auto-combat and auto-equip baked into bridge 2026-03-30 20:12:56 -05:00
dougbot CORE REFLEX: Auto-combat and auto-equip baked into bridge 2026-03-30 20:12:56 -05:00
.env.example Phase 1 complete: Doug connects, chats with personality 2026-03-30 02:03:25 -05:00
.gitignore Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
context.md Phase 1 complete: Doug connects, chats with personality 2026-03-30 02:03:25 -05:00
personality-traits.md Phase 1 complete: Doug connects, chats with personality 2026-03-30 02:03:25 -05:00
requirements.txt Phase 1 complete: Doug connects, chats with personality 2026-03-30 02:03:25 -05:00
run.py Phase 1 complete: Doug connects, chats with personality 2026-03-30 02:03:25 -05:00
test-combat.js Major overhaul: combat fix, smart brain, Ollama stability, crafting 2026-03-30 16:07:23 -05:00
test-craft.js Major overhaul: combat fix, smart brain, Ollama stability, crafting 2026-03-30 16:07:23 -05:00