[GH-ISSUE #3962] [server-thread / LAN / server] Furnace, blast furnace and smoker recipe books are empty: the recipe book packets carry no cooking recipes #1156

Closed
opened 2026-11-02 15:44:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @degepie on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3962

🤖 Filed by degepie's AI agent (Claude Code), not by degepie personally.

What happens

In single player (the default server thread), the recipe book of a furnace, blast furnace or smoker is empty: only the search tab is shown, with no recipes, even though the player knows smelting recipes. The crafting book works.

Seen on nightly-2026-10-29-baa379d. The player's save had 133 known recipes, among them minecraft:charcoal, minecraft:copper_ingot_from_smelting_raw_copper, minecraft:iron_ingot_from_smelting_raw_iron, minecraft:glass and minecraft:cooked_porkchop. Oak logs were in the inventory and raw copper was in the furnace input. With the "Showing Smeltable" filter on, the book was empty, and the food/blocks/misc tabs were missing.

Expected (vanilla)

The furnace book shows the Food, Blocks and Misc tabs. With the smeltable filter on, it lists at least charcoal and the copper ingot. Vanilla's server sends every known smelting/blasting/smoking recipe in ClientboundRecipeBookAddPacket with a furnace recipe display (FurnaceRecipeDisplay).

Cause

crates/horizon-client/src/lan/advancements.rs, book_entries encodes an entry only for minecraft:crafting_shaped and minecraft:crafting_shapeless. Every other type hits _ => return Vec::new(), so cooking recipes never reach the client. The same encoder serves first_tick, recipes_added (unlocks) and initial_recipe_book.

Since the window joins its server thread as a network player (connect_local), its book comes only from those packets (remote_recipe_book_add). sync_client_book returns early when remote is set. Vanilla smelting/blasting/smoking recipes are therefore missing from:

  • the default single player,
  • LAN guests,
  • players on a dedicated server.

For a check, the library side is fine. client_probe recipe_book_view_fixture, fed this save's 133 recipes as a replacing batch, shows all four furnace tabs. With the filter on it lists charcoal and copper ingot. Only the packets lack the displays.

Fix direction

Write the furnace display in book_entries for minecraft:smelting, minecraft:blasting and minecraft:smoking:

  • the ingredient,
  • the any-fuel slot,
  • the result,
  • the station item,
  • the cooking time,
  • the experience.

Then add the recipe's group, its furnace_* / blast_furnace_* / smoker_* book category, and its placement. remote_recipe_book_add already maps display ids back to entries, so the client side should only need the entries to arrive. A probe/parity case comparing the initial book packet against vanilla for cooking recipes would cover it.

Originally created by @degepie on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3962 > 🤖 Filed by degepie's AI agent (Claude Code), not by degepie personally. ### What happens In single player (the default server thread), the recipe book of a furnace, blast furnace or smoker is empty: only the search tab is shown, with no recipes, even though the player knows smelting recipes. The crafting book works. Seen on nightly-2026-10-29-baa379d. The player's save had 133 known recipes, among them `minecraft:charcoal`, `minecraft:copper_ingot_from_smelting_raw_copper`, `minecraft:iron_ingot_from_smelting_raw_iron`, `minecraft:glass` and `minecraft:cooked_porkchop`. Oak logs were in the inventory and raw copper was in the furnace input. With the "Showing Smeltable" filter on, the book was empty, and the food/blocks/misc tabs were missing. ### Expected (vanilla) The furnace book shows the Food, Blocks and Misc tabs. With the smeltable filter on, it lists at least charcoal and the copper ingot. Vanilla's server sends every known smelting/blasting/smoking recipe in `ClientboundRecipeBookAddPacket` with a furnace recipe display (`FurnaceRecipeDisplay`). ### Cause `crates/horizon-client/src/lan/advancements.rs`, `book_entries` encodes an entry only for `minecraft:crafting_shaped` and `minecraft:crafting_shapeless`. Every other type hits `_ => return Vec::new()`, so cooking recipes never reach the client. The same encoder serves `first_tick`, `recipes_added` (unlocks) and `initial_recipe_book`. Since the window joins its server thread as a network player (`connect_local`), its book comes only from those packets (`remote_recipe_book_add`). `sync_client_book` returns early when `remote` is set. Vanilla smelting/blasting/smoking recipes are therefore missing from: - the default single player, - LAN guests, - players on a dedicated server. For a check, the library side is fine. `client_probe recipe_book_view_fixture`, fed this save's 133 recipes as a replacing batch, shows all four furnace tabs. With the filter on it lists charcoal and copper ingot. Only the packets lack the displays. ### Fix direction Write the furnace display in `book_entries` for `minecraft:smelting`, `minecraft:blasting` and `minecraft:smoking`: - the ingredient, - the any-fuel slot, - the result, - the station item, - the cooking time, - the experience. Then add the recipe's group, its `furnace_*` / `blast_furnace_*` / `smoker_*` book category, and its placement. `remote_recipe_book_add` already maps display ids back to entries, so the client side should only need the entries to arrive. A probe/parity case comparing the initial book packet against vanilla for cooking recipes would cover it.
Author
Owner

@degepie commented on GitHub (Oct 30, 2026):

🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. Checked both open fixes in the game, on a fresh survival world in the default single-player window (server thread). Items came from /give, and the recipes unlocked normally:

Build Furnace recipe book With the smeltable filter on
v0.2.96 (control) empty, search tab only empty
#3969 (c09f727b3) Misc tab, copper ingot and charcoal (after /give of raw copper and oak logs) charcoal, with only oak logs in the inventory
#4339 (6a0396620) the same the same

With /recipe give @s * #4339 also showed all three tabs and 4 pages; #3969 had 2 tabs in the natural case, and that command wasn't compared on it.

Both fix the reported case from the player's side. Not checked: a LAN guest, a dedicated server, the blast furnace and smoker, or placing a recipe from the book. I didn't compare the two diffs, so I've no opinion on which to take.

Pipeline: Opus 5.5 (in-game check)

<!-- gh-comment-id:6532376096 --> @degepie commented on GitHub (Oct 30, 2026): 🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. Checked both open fixes in the game, on a fresh survival world in the default single-player window (server thread). Items came from `/give`, and the recipes unlocked normally: | Build | Furnace recipe book | With the smeltable filter on | |---|---|---| | v0.2.96 (control) | empty, search tab only | empty | | #3969 (c09f727b3) | Misc tab, copper ingot and charcoal (after `/give` of raw copper and oak logs) | charcoal, with only oak logs in the inventory | | #4339 (6a0396620) | the same | the same | With `/recipe give @s *` #4339 also showed all three tabs and 4 pages; #3969 had 2 tabs in the natural case, and that command wasn't compared on it. Both fix the reported case from the player's side. Not checked: a LAN guest, a dedicated server, the blast furnace and smoker, or placing a recipe from the book. I didn't compare the two diffs, so I've no opinion on which to take. <sub>Pipeline: Opus 5.5 (in-game check)</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1156
No description provided.