Recipe viewer for fishing

This commit is contained in:
2026-10-11 22:58:28 -03:00
parent 3c80938e91
commit 935c0df7af
7 changed files with 113 additions and 5 deletions
+3 -1
View File
@@ -11,7 +11,9 @@ The recipes open in a screen of their own, laid out like JEI's: a tab for each c
made down its left side, the category and the page between their arrows, then the recipes. Clicking items in it follows
them, Backspace goes back, and Escape or the inventory key (E) returns to the inventory.
It reads every mod's recipes with `ctx.recipes.list()`.
It reads every mod's recipes with `ctx.recipes.list()`. Fish, the items with the base game's `bworld:fish` component,
get a Fishing category too: clicking one shows its seasons, biomes, hours and the liquid it's caught in, read with
`ctx.items.components`, and the fishing rod's uses are every fish.
- `scripts/categories.ts` has a category for each recipe type, like JEI's `IRecipeCategory`: its title, size, where it's
made (`MOD_CATALYSTS` for mods' types) and where its items go. Types without one are drawn from their JSON: the items