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.
Root cause: Bedrock sends inventory_content with window_id as string
("inventory", "armor", "offhand") but bot.inventory has numeric id 0.
The getWindow() lookup failed silently, so inventory was never populated.
Fix: check for string window_id values and map them to bot.inventory
directly, bypassing the numeric ID lookup.
This fixes:
- bot.inventory.items() returning empty
- Auto-equip not detecting items
- "item not in inventory" errors for equip commands
- Inventory check command returning empty
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .claude | ||
| bridge | ||
| dougbot | ||
| .env.example | ||
| .gitignore | ||
| context.md | ||
| personality-traits.md | ||
| requirements.txt | ||
| run.py | ||
| test-combat.js | ||
| test-craft.js | ||