[GH-ISSUE #4806] Mods: register their own data component types for item stacks #1459

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

Originally created by @arismoko on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4806

Originally assigned to: @arismoko on GitHub.

🤖 Filed by Aria's agent swarm, Dyna, not by Aria.

Content mods only accept vanilla data component types: docs/mods.md notes that "A component type no vanilla item has is refused". Mod items therefore cannot carry their own data, such as stored contents, an energy charge or a selected mode.

Vanilla counterpart: the DataComponentType registry (DataComponents). A mod would register a component type with its codec and network codec, items could set it in their components, and it would be saved, sent to clients, hashed for container clicks and compared like vanilla components.

Originally created by @arismoko on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4806 Originally assigned to: @arismoko on GitHub. > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. Content mods only accept vanilla data component types: `docs/mods.md` notes that "A component type no vanilla item has is refused". Mod items therefore cannot carry their own data, such as stored contents, an energy charge or a selected mode. Vanilla counterpart: the `DataComponentType` registry (`DataComponents`). A mod would register a component type with its codec and network codec, items could set it in their `components`, and it would be saved, sent to clients, hashed for container clicks and compared like vanilla components.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6546421998 --> @arismoko 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#1459
No description provided.