Players walk up to a bench, a campfire or a stove, pick a recipe from a menu, and craft it with a short key-press minigame while their character works.
Works on any framework jo_libs supports. A few extras (weapon names and stack limits) are read from VORP when it's installed.
How it works¶
Walking up to a crafting spot shows a prompt. Pressing it walks the player up to the bench (or turns them to face the campfire) and opens the menu:
- The first page lists the categories. If a location only has one category the player can use, the menu opens straight into it.
- Each category is a grid of recipes. A recipe shows what it needs, how much of each ingredient you have, and its stack limit.
- Recipes you can't make are greyed out. A recipe with several ways of paying has a Pay with slider (Q / E) instead.
Picking a recipe starts crafting. You make one per round of the minigame, as many times as your ingredients allow. Failing a round or pressing Escape stops early, keeping whatever you already made. At the end you get a summary, and the menu updates to show what's left.
Everything is checked again on the server before anything is crafted: the job and grade, the ingredients or money, and whether the result fits in the inventory. If it doesn't fit, everything paid is given back.