[PR #2992] [MERGED] Villagers hear bells, use bone meal, fetch dropped items and play tag as vanilla; wolves beg and golems offer flowers as vanilla #4743

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2992
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @ludovic111

Base: main ← Head: fix/mob-ai-villager-parity


📝 Commits (10+)

  • 20ffd8e Tell villagers within 32 blocks that a bell was rung
  • 5388064 Ring the bell for real when a villager rings it
  • 567e92e Let villagers harvest torchflower crops
  • 1b469a5 Let villagers with bone meal grow crops
  • 59b67af Send villagers to the dropped items they want
  • 3f378dd Make a chased child villager run away in tag
  • 4e814a1 Make every wolf beg for a bone or its food
  • e9eaa66 Offer the iron golem's poppy for 400 game ticks, not 800
  • 6e26990 Run cargo fmt on the villager changes
  • efa8df8 villagers: a torchflower crop is never ripe

📊 Changes

10 files changed (+392 additions, -51 deletions)

View changed files

📝 crates/horizon-client/src/block_entity_anim.rs (+2 -1)
📝 crates/horizon-client/src/game/block_entity_anims.rs (+31 -5)
📝 crates/horizon-client/src/game/creatures.rs (+21 -0)
📝 crates/horizon-client/src/game/villagers.rs (+61 -0)
📝 crates/horizon-client/src/mobs.rs (+11 -0)
📝 crates/horizon-client/src/mobs/golem.rs (+3 -2)
📝 crates/horizon-client/src/mobs/tame.rs (+6 -7)
📝 crates/horizon-client/src/mobs/villager.rs (+7 -1)
📝 crates/horizon-client/src/mobs/villager_brain.rs (+233 -35)
📝 crates/horizon-world/src/level/mod.rs (+17 -0)

📄 Description

What and why

  • A rung bell now sets HEARD_BELL_TIME on living entities within 32 blocks, so villagers go into the hide activity. Nothing set it before, so the hide package could never run.
  • A villager ringing the meeting-point bell now rings it for real: the bell shakes and the block_change game event fires. Before, only the sound played.
  • Villagers harvest and treat torchflower crops as growing (the crop was missing from the crop lists, so they planted it and never harvested it).
  • Villagers carrying bone meal now walk to a growing crop next to them and use it, for up to 80 work cycles, with the level event 1505 particles. UseBonemeal was a stub that never started.
  • Villagers walk to the dropped item they want (food, seeds, what their job asks for, villager_picks_up items). GoToWantedItem was hard false and the nearest-item sensor did nothing.
  • Child villagers in tag now run away when another kid is chasing them, and otherwise chase the kid with the fewest (1 to 5) chasers. Before they always chased the first friend.
  • Wolves beg for a bone or any of their food, tame or not. Before, untamed wolves begged only for bones and tamed ones only for food.
  • The iron golem's poppy offer lasts 400 game ticks, not 800.

Vanilla reference

  • BellBlockEntity.java:101-120 (updateEntities, 32 blocks, HEARD_BELL_TIME)
  • RingBell.java:26, BellBlock.attemptToRing
  • HarvestFarmland.java, CropBlock (torchflower_crop, max age 1)
  • UseBonemeal.java:31-109 (10-tick check, 160-tick gap, 80 work cycles, 40-tick cycle)
  • GoToWantedItem.java, NearestItemSensor.java (32 x 16 x 32 box, wantsToPickUp, line of sight)
  • PlayTagWithOtherKids.java:41-70
  • BegGoal.java:67
  • OfferFlowerGoal.java:58

Self-check

clippy and fmt pass for horizon-client and horizon-world. Not run in game.


🔄 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/2992 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/mob-ai-villager-parity` --- ### 📝 Commits (10+) - [`20ffd8e`](https://github.com/horizon-rust/horizon/commit/20ffd8e53890d0fda45eb8471fd67b56fa809f2d) Tell villagers within 32 blocks that a bell was rung - [`5388064`](https://github.com/horizon-rust/horizon/commit/5388064d88997eb32763268caf888f734fa96a3a) Ring the bell for real when a villager rings it - [`567e92e`](https://github.com/horizon-rust/horizon/commit/567e92e2a2633b85d8802b8695eb0cfef8fc967d) Let villagers harvest torchflower crops - [`1b469a5`](https://github.com/horizon-rust/horizon/commit/1b469a542f1aa78d1ab62a7e7d5b1c780ac5a545) Let villagers with bone meal grow crops - [`59b67af`](https://github.com/horizon-rust/horizon/commit/59b67af6a832a639615a58cbd2af1cb5dda6ec56) Send villagers to the dropped items they want - [`3f378dd`](https://github.com/horizon-rust/horizon/commit/3f378dda96a162f3b53019c7b56e630df33a9c0f) Make a chased child villager run away in tag - [`4e814a1`](https://github.com/horizon-rust/horizon/commit/4e814a152aba35e36b64fd9a8d62e06a63bcb310) Make every wolf beg for a bone or its food - [`e9eaa66`](https://github.com/horizon-rust/horizon/commit/e9eaa6654248317b04411cd0068040ed19e5bfb9) Offer the iron golem's poppy for 400 game ticks, not 800 - [`6e26990`](https://github.com/horizon-rust/horizon/commit/6e26990ad3e5224e6cd45393bf718692de8b468c) Run cargo fmt on the villager changes - [`efa8df8`](https://github.com/horizon-rust/horizon/commit/efa8df83b32f2dcfc6e8bfa6eed36ae08e8fa74b) villagers: a torchflower crop is never ripe ### 📊 Changes **10 files changed** (+392 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/block_entity_anim.rs` (+2 -1) 📝 `crates/horizon-client/src/game/block_entity_anims.rs` (+31 -5) 📝 `crates/horizon-client/src/game/creatures.rs` (+21 -0) 📝 `crates/horizon-client/src/game/villagers.rs` (+61 -0) 📝 `crates/horizon-client/src/mobs.rs` (+11 -0) 📝 `crates/horizon-client/src/mobs/golem.rs` (+3 -2) 📝 `crates/horizon-client/src/mobs/tame.rs` (+6 -7) 📝 `crates/horizon-client/src/mobs/villager.rs` (+7 -1) 📝 `crates/horizon-client/src/mobs/villager_brain.rs` (+233 -35) 📝 `crates/horizon-world/src/level/mod.rs` (+17 -0) </details> ### 📄 Description ## What and why - A rung bell now sets `HEARD_BELL_TIME` on living entities within 32 blocks, so villagers go into the hide activity. Nothing set it before, so the hide package could never run. - A villager ringing the meeting-point bell now rings it for real: the bell shakes and the block_change game event fires. Before, only the sound played. - Villagers harvest and treat torchflower crops as growing (the crop was missing from the crop lists, so they planted it and never harvested it). - Villagers carrying bone meal now walk to a growing crop next to them and use it, for up to 80 work cycles, with the level event 1505 particles. `UseBonemeal` was a stub that never started. - Villagers walk to the dropped item they want (food, seeds, what their job asks for, `villager_picks_up` items). `GoToWantedItem` was hard false and the nearest-item sensor did nothing. - Child villagers in tag now run away when another kid is chasing them, and otherwise chase the kid with the fewest (1 to 5) chasers. Before they always chased the first friend. - Wolves beg for a bone or any of their food, tame or not. Before, untamed wolves begged only for bones and tamed ones only for food. - The iron golem's poppy offer lasts 400 game ticks, not 800. ## Vanilla reference - `BellBlockEntity.java:101-120` (`updateEntities`, 32 blocks, `HEARD_BELL_TIME`) - `RingBell.java:26`, `BellBlock.attemptToRing` - `HarvestFarmland.java`, `CropBlock` (torchflower_crop, max age 1) - `UseBonemeal.java:31-109` (10-tick check, 160-tick gap, 80 work cycles, 40-tick cycle) - `GoToWantedItem.java`, `NearestItemSensor.java` (32 x 16 x 32 box, `wantsToPickUp`, line of sight) - `PlayTagWithOtherKids.java:41-70` - `BegGoal.java:67` - `OfferFlowerGoal.java:58` ## Self-check clippy and fmt pass for horizon-client and horizon-world. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:36 +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#4743
No description provided.