Files
bworld/mods/recipe_viewer/README.md
T
2026-09-27 01:25:47 -03:00

14 lines
816 B
Markdown

# Recipe Viewer
A recipe viewer like Just Enough Items, as a client script. Every inventory screen gets the list of every item on its
right, with a search box (`@mod` searches by mod, like `@farmersdelight`).
- Left click an item, or press R over any item (in the list or in a slot), for the recipes that make it.
- Right click, or U, for the recipes that use it.
- In the recipes, click items to follow them. Backspace or Back goes back, X closes.
It reads every mod's recipes with `ctx.recipes.list()`. It knows how to draw shaped, furnace, fuel and smithing recipes,
and draws other mods' recipe types from their JSON: the items in their lists as ingredients, a single item (like the
cooking pot's bowl) under the arrow, and their `result`. `CATALYSTS` in `scripts/client.ts` says which block makes each
type.