> ## Content Index
> Fetch the complete content index at: https://devlog.bujingames.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Moondog, day 10 (30 Oct): the self bow, from tree to arrow
- URL: https://devlog.bujingames.com/moondog-day-10-30-oct-the-self-bow-from-tree-to-arrow/
- Published: 2026-10-31T04:00:00.000Z
- Updated: 2026-12-01T19:49:13.000Z
- Description: The 28th and 29th were steady work on NPCs, recipes, skill gain, equipment, ranged combat, taming and the player's Defense skill, and I moved a few more blocking operations off the server's main thread. The 30th turned that into a full slice: making a bow from a living tree.
- Author: Jin
- Tags: moondog, devlog

The 28th and 29th were steady work on NPCs, recipes, skill gain, equipment, ranged combat, taming and the player's Defense skill, and I moved a few more blocking operations off the server's main thread. The 30th turned that into a full slice: making a bow from a living tree.

## Fixes first

- **An arrow that took the server down.** If the archer disconnected while their arrow was in flight, the arrow kept a reference to a body that no longer existed and threw on every physics tick, before the state broadcast went out. No client got any state, every client's stall watchdog fired, and everyone was logged out and back in every four seconds. Now one failing step in a tick no longer stops the rest of the world. Chat also moved off the main thread.
- A station job that finished with the panel open was never claimed, because the countdown called a function that didn't exist.
- I turned the terrain into a caldera, so I can work in a smaller area for now.

## Smaller systems

- **Creature kinds.** Species behaviour (fleeing, wandering, taming rules) is data in its own table, not hard-coded Rabbit/Wolf checks.
- **An attack cooldown ring** around the crosshair, timed by the server's own cooldown.
- **Treating pets.** Hold E with a bandage for five seconds. The server times the hold, so the client can't skip it.
- **No gold repair.** Items that hit zero durability break and vanish. Repair will come from player skills later.

## The self bow

The bow was built up in steps:

1. Recipes can need tools, which wear as they're used. They can also fail, which gives you failure outputs and half the XP.
2. Gathering nodes can need tools too. A worn tool makes the job slower.
3. **Passive stations**, like a drying rack: a job there keeps running when you walk off or log out, and doesn't use one of your job slots.
4. Content: yew trees, a chopping block, a shaving bench, a drying rack and a tiller, with twelve recipes from log to Yew Self Bow.
5. Geese for feathers, and blunt arrows to shoot until there's smithing.
6. The station window shows inputs, outputs, time, tools, risk and skill for each recipe, and every running job gets its own row.

## Materials on everything

The rule from here on: **a crafted item carries the stats of what it was made from.** Quality carries through a chain of stages, so the output is never better than the weakest wood that went in, and your skill decides how close you get to that limit. Items have material tags, and a materials table holds real figures for each wood: draw, cast, durability and seasoning time. A recipe can take "any wood log", and the finished bow knows which wood it came from.