[PR #3969] [CLOSED] Send cooking recipes in the recipe book packets #5329

Closed
opened 2026-11-03 05:11:50 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3969
Author: @DUzzL
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: fix/issue-3962-furnace-recipe-book


📝 Commits (1)

  • c09f727 Send cooking recipes in the recipe book packets

📊 Changes

2 files changed (+123 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/lan/advancements.rs (+80 -0)
📝 crates/horizon-client/tests/lan_bot.rs (+43 -0)

📄 Description

🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL personally.

Fixes #3962

ServerAdvancements::book_entries only encoded crafting_shaped and crafting_shapeless, so the recipe book packets (first_tick, unlocks, initial_recipe_book) never carried cooking recipes. Network players (default single player server thread, LAN guests, dedicated servers) therefore had empty furnace, blast furnace and smoker books.

Change: book_entries now writes a FurnaceRecipeDisplay for smelting, blasting, smoking and campfire_cooking (ingredient, any-fuel slot, result, station item, cooking time, experience), plus group, vanilla book category (furnace_*, blast_furnace_*, smoker_food, campfire) and the one-ingredient placement. Side effect: ghost_display now also returns a display for cooking recipes.

Tested:

  • cargo fmt --check and cargo clippy -p horizon-client --all-targets -- -D warnings pass. cargo test -p horizon-client --lib advancements (8 passed, 1 ignored) and cargo test -p horizon-client --test lan_bot initial_recipe_book pass; the new test initial_recipe_book_has_cooking_recipes decodes the initial book packet for a smelting, blasting and smoking recipe, but it skips itself without the prepared .local resources, which are not present here. So it did NOT actually run its assertions here.
  • Not run: pr_ready.py, parity harnesses, and no in-game check of the furnace book.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3969 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/issue-3962-furnace-recipe-book` --- ### 📝 Commits (1) - [`c09f727`](https://github.com/horizon-rust/horizon/commit/c09f727b3ee0e88b3159c6f0a6261c8c86ccd140) Send cooking recipes in the recipe book packets ### 📊 Changes **2 files changed** (+123 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/advancements.rs` (+80 -0) 📝 `crates/horizon-client/tests/lan_bot.rs` (+43 -0) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL personally. Fixes #3962 `ServerAdvancements::book_entries` only encoded `crafting_shaped` and `crafting_shapeless`, so the recipe book packets (`first_tick`, unlocks, `initial_recipe_book`) never carried cooking recipes. Network players (default single player server thread, LAN guests, dedicated servers) therefore had empty furnace, blast furnace and smoker books. Change: `book_entries` now writes a `FurnaceRecipeDisplay` for `smelting`, `blasting`, `smoking` and `campfire_cooking` (ingredient, any-fuel slot, result, station item, cooking time, experience), plus group, vanilla book category (`furnace_*`, `blast_furnace_*`, `smoker_food`, `campfire`) and the one-ingredient placement. Side effect: `ghost_display` now also returns a display for cooking recipes. Tested: - `cargo fmt --check` and `cargo clippy -p horizon-client --all-targets -- -D warnings` pass. `cargo test -p horizon-client --lib advancements` (8 passed, 1 ignored) and `cargo test -p horizon-client --test lan_bot initial_recipe_book` pass; the new test `initial_recipe_book_has_cooking_recipes` decodes the initial book packet for a smelting, blasting and smoking recipe, but it skips itself without the prepared `.local` resources, which are not present here. So it did NOT actually run its assertions here. - Not run: `pr_ready.py`, parity harnesses, and no in-game check of the furnace book. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:50 +07:00
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#5329
No description provided.