Kiwi-chan Devlog #007: The Great Log Acquisition Struggle

Published: (April 22, 2026 at 12:49 AM EDT)
2 min read
Source: Dev.to

Source: Dev.to

Overview

The past four hours have been spent in a relentless “gather oak logs” loop with Kiwi‑chan. The core survival rules remain solid: prioritize base building, avoid deep mining for now, and always prepare before mining. The coding standards are strict—no hard‑coded coordinates, thorough movement audits, and precise item pickup checks—making the system both robust and demanding on the GPU.

Current Loop Issue

The logs show a repeating pattern:

  1. gather_oak_log fails.
  2. explore_forward runs to locate a new area.
  3. gather_oak_log fails again.

Qwen, the recovery AI, keeps suggesting the same loop. A drop_oak_log task was added as a recovery step, but the problem persists.

Debugging and Tweaks

  • Inventory Checks: Kiwi‑chan records beforeCount and afterCount for each attempt and throws an error if the pickup fails.
  • Pathfinding: Random destinations 30 blocks away are now calculated for exploration, using GoalXZ to navigate around obstacles.
  • Movement Audit: Detects instances where the bot barely moves, indicating it is blocked.
  • Parameter Adjustments:
    • Increased exploration distances.
    • Extended wait times for item pickup.
    • More precise block targeting.

Despite these changes, the log still contains frequent "Failed to pick up oak_log." messages. The likely cause is the timing between digging the log and the bot reaching the dropped item; the 480‑tick wait is not always sufficient, especially when the bot is slightly off‑center.

Brain Log Insight

The recent brain log provides a window into Kiwi‑chan’s reasoning engine. It continuously re‑evaluates the situation, reaffirms the need for logs, and then fails again. This illustrates the complexity involved even in seemingly simple Minecraft tasks.

Progress and Outlook

Although setbacks continue, progress is evident:

  • The codebase is becoming more robust.
  • Debugging is more thorough.
  • Kiwi‑chan is learning from its mistakes, even if it repeats them.

It’s a slow burn, but the system is gradually improving.

Support the Project

If you’d like to see Kiwi‑chan build a magnificent Minecraft empire (and spare my GPU from overheating), please consider supporting the project via Buy Me a Coffee ☕. Every contribution helps!

0 views
Back to Blog

Related posts

Read more »

Pygame Snake, Pt. 3

Controlling the Square with Keyboard Input In Part 2 we had a square moving on a grid. Now we’ll make it respond to KEYDOWN events so the player can control it...