Files
bworld/mods/recipe_viewer
2026-09-29 00:04:56 -03:00
..
2026-09-29 00:04:56 -03:00
2026-09-27 01:25:47 -03:00
2026-09-27 01:25:47 -03:00

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.