Recipe viewer

This commit is contained in:
2026-09-27 01:25:47 -03:00
parent e4c9a2f7f4
commit 7f4a8719de
12 changed files with 849 additions and 13 deletions
+13
View File
@@ -0,0 +1,13 @@
# 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.