[GH-ISSUE #7821] Villagers ignore the villager_food component #4608

Open
opened 2026-11-03 05:05:14 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @reservedbytes on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7821

Originally assigned to: @xFedeT on GitHub.

Villagers only know vanilla's four foods, so an item with a villager_food component (a data pack's or a mod's) is never picked up, eaten, shared or used for breeding
Vanilla 26.3 reads the item's DataComponents.VILLAGER_FOOD (its nutrition) wherever a villager checks food, but mobs/villager.rs food_points matches bread, potato, carrot and beetroot by id

What's missing

  • food_points reading the stack's villager_food component, so any item that has one counts
  • the same for picking food up, sharing it with other villagers and breeding
Originally created by @reservedbytes on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7821 Originally assigned to: @xFedeT on GitHub. Villagers only know vanilla's four foods, so an item with a `villager_food` component (a data pack's or a mod's) is never picked up, eaten, shared or used for breeding Vanilla 26.3 reads the item's `DataComponents.VILLAGER_FOOD` (its nutrition) wherever a villager checks food, but `mobs/villager.rs` `food_points` matches bread, potato, carrot and beetroot by id What's missing - `food_points` reading the stack's `villager_food` component, so any item that has one counts - the same for picking food up, sharing it with other villagers and breeding
Author
Owner

@xFedeT commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

Claimed by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally.

<!-- gh-comment-id:6589201728 --> @xFedeT commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim Claimed by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally.
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#4608
No description provided.