[PR #4584] [MERGED] Let mobs board minecarts they walk into #5710

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4584
Author: @doodlyyousuf
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: fix/mob-minecart-board


📝 Commits (4)

  • 4ef0559 Let mobs board minecarts they walk into
  • 641919b Board carts only like vanilla: rideable, moving, no rider
  • f32c883 Merge main into #4584
  • 21a0572 Merge main into #4584 (main's hub.rs clippy fix)

📊 Changes

3 files changed (+205 additions, -24 deletions)

View changed files

📝 crates/horizon-client/src/game/minecarts.rs (+179 -9)
📝 crates/horizon-client/src/game/passengers.rs (+3 -0)
📝 crates/horizon-client/src/game/persist.rs (+23 -15)

📄 Description

🤖 Opened by doodlyyousuf's AI agent (OhMyAgent, grok-4.6)

Eligible mobs walk into an empty minecart and board it, matching vanilla OldMinecartBehavior.pushAndPickupEntities. Players still click to ride; iron golems still push; a cart that already has a rider pushes instead of picking up a second mob.

Game::sync_riders only treated boats and mobs as vehicles, so even a wired boarding would have been cleared the next tick. Cart riders now stay seated on the passenger attachment, get out when the cart breaks, and save under the cart's Passengers. Boat boarding is unchanged.

No existing issue or PR for this gap. Boat pickup is #1580.

Locally: cargo test -p horizon-world --lib passed (178 tests). horizon-client lib tests could not compile on this machine (gnu dlltool missing; msvc link.exe missing). The new unit tests are a_cow_boards_an_empty_cart_and_an_iron_golem_does_not and a_cart_seat_matches_the_player_offset.


🔄 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/4584 **Author:** [@doodlyyousuf](https://github.com/doodlyyousuf) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/mob-minecart-board` --- ### 📝 Commits (4) - [`4ef0559`](https://github.com/horizon-rust/horizon/commit/4ef055961713166d2f48775143e7316e878e324c) Let mobs board minecarts they walk into - [`641919b`](https://github.com/horizon-rust/horizon/commit/641919b93df7b2a8642377f8a04d234874680d82) Board carts only like vanilla: rideable, moving, no rider - [`f32c883`](https://github.com/horizon-rust/horizon/commit/f32c8836ad9fe80469be4b0044848f59c4d44d3a) Merge main into #4584 - [`21a0572`](https://github.com/horizon-rust/horizon/commit/21a0572afe8a308f902db4c9a9043d8b9faf4a48) Merge main into #4584 (main's hub.rs clippy fix) ### 📊 Changes **3 files changed** (+205 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/minecarts.rs` (+179 -9) 📝 `crates/horizon-client/src/game/passengers.rs` (+3 -0) 📝 `crates/horizon-client/src/game/persist.rs` (+23 -15) </details> ### 📄 Description > 🤖 Opened by doodlyyousuf's AI agent (OhMyAgent, grok-4.6) Eligible mobs walk into an empty minecart and board it, matching vanilla `OldMinecartBehavior.pushAndPickupEntities`. Players still click to ride; iron golems still push; a cart that already has a rider pushes instead of picking up a second mob. `Game::sync_riders` only treated boats and mobs as vehicles, so even a wired boarding would have been cleared the next tick. Cart riders now stay seated on the passenger attachment, get out when the cart breaks, and save under the cart's `Passengers`. Boat boarding is unchanged. No existing issue or PR for this gap. Boat pickup is #1580. Locally: `cargo test -p horizon-world --lib` passed (178 tests). `horizon-client` lib tests could not compile on this machine (gnu `dlltool` missing; msvc `link.exe` missing). The new unit tests are `a_cow_boards_an_empty_cart_and_an_iron_golem_does_not` and `a_cart_seat_matches_the_player_offset`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:28 +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#5710
No description provided.