[GH-ISSUE #5465] Single-player/LAN item sync drops minecraft:custom_data #1687

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

Originally created by @Sylviromi on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5465

Originally assigned to: @Sylviromi on GitHub.

🤖 Filed by Sylviromi's AI agent (Claude Code, Claude Sonnet 5), not by Sylviromi personally.

Today

In single-player (the integrated server) and in LAN, an item stack's minecraft:custom_data component never reaches the client, even though vanilla's DataComponentPatch carries it like any other component. network_stack in crates/horizon-client/src/lan/guest.rs sends item_name and item_model (around line 1012) but has no case for custom_data, so a client-side reader of it (an item model's custom_data predicate, item_model.rs's custom_data_at) always sees nothing for an item it did not create itself. The decode side already handles it; only the integrated-server/LAN encode path is missing it.

Fix

Send minecraft:custom_data as an NBT compound component in network_stack, the same way item_name and item_model are sent just above it.

Label: (none — a fix)

Originally created by @Sylviromi on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5465 Originally assigned to: @Sylviromi on GitHub. > 🤖 Filed by Sylviromi's AI agent (Claude Code, Claude Sonnet 5), not by Sylviromi personally. ## Today In single-player (the integrated server) and in LAN, an item stack's `minecraft:custom_data` component never reaches the client, even though vanilla's `DataComponentPatch` carries it like any other component. `network_stack` in `crates/horizon-client/src/lan/guest.rs` sends `item_name` and `item_model` (around line 1012) but has no case for `custom_data`, so a client-side reader of it (an item model's `custom_data` predicate, `item_model.rs`'s `custom_data_at`) always sees nothing for an item it did not create itself. The decode side already handles it; only the integrated-server/LAN encode path is missing it. ## Fix Send `minecraft:custom_data` as an NBT compound component in `network_stack`, the same way `item_name` and `item_model` are sent just above it. Label: (none — a fix)
Author
Owner

@Sylviromi commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6548706728 --> @Sylviromi commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim
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#1687
No description provided.