[PR #4655] [MERGED] Parity: passenger predicate, boat vehicles, sulfur cube shear trigger #5758

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4655
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/36-adv


📝 Commits (1)

  • ab2ab8e Advancements: passenger predicate, boats as vehicles, sulfur cube shearing trigger

📊 Changes

4 files changed (+77 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/advancements.rs (+25 -0)
📝 crates/horizon-client/src/game/advancements.rs (+40 -0)
📝 crates/horizon-client/src/game/boats.rs (+2 -0)
📝 crates/horizon-client/src/game/sulfur_cubes.rs (+10 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3520

Rows done:

  • PassengerPredicate.matches: EntityView carries its passengers; the minecraft:passenger key matches when any passenger matches the nested predicate. The player's vehicle can now be a boat (with its seated mobs and the player as passengers), and boarding a boat fires started_riding (ServerPlayer.startRiding), so husbandry/ride_a_boat_with_a_goat can complete.
  • PlayerInteractTrigger.trigger: the wolf armor shear already fired player_sheared_equipment on main (creatures.rs, from 1727f2acf); this adds the other vanilla caller, SulfurCube.mobInteract shearing its body block (PLAYER_SHEARED_EQUIPMENT with the block, after the damage to the shears).

Vanilla methods followed: PassengerPredicate.matches, PlayerInteractTrigger.trigger, Mob.shearItem, SulfurCube.mobInteract, ServerPlayer.startRiding.

Tests: advancements::tests::passenger_predicate_needs_a_matching_passenger; clippy clean for horizon-client.

🤖 Generated with Claude Code


🔄 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/4655 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/36-adv` --- ### 📝 Commits (1) - [`ab2ab8e`](https://github.com/horizon-rust/horizon/commit/ab2ab8ef6159fe33f2481e75215d66d8d793eddb) Advancements: passenger predicate, boats as vehicles, sulfur cube shearing trigger ### 📊 Changes **4 files changed** (+77 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/advancements.rs` (+25 -0) 📝 `crates/horizon-client/src/game/advancements.rs` (+40 -0) 📝 `crates/horizon-client/src/game/boats.rs` (+2 -0) 📝 `crates/horizon-client/src/game/sulfur_cubes.rs` (+10 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3520 Rows done: - `PassengerPredicate.matches`: `EntityView` carries its passengers; the `minecraft:passenger` key matches when any passenger matches the nested predicate. The player's vehicle can now be a boat (with its seated mobs and the player as passengers), and boarding a boat fires `started_riding` (`ServerPlayer.startRiding`), so `husbandry/ride_a_boat_with_a_goat` can complete. - `PlayerInteractTrigger.trigger`: the wolf armor shear already fired `player_sheared_equipment` on main (`creatures.rs`, from 1727f2acf); this adds the other vanilla caller, `SulfurCube.mobInteract` shearing its body block (`PLAYER_SHEARED_EQUIPMENT` with the block, after the damage to the shears). Vanilla methods followed: `PassengerPredicate.matches`, `PlayerInteractTrigger.trigger`, `Mob.shearItem`, `SulfurCube.mobInteract`, `ServerPlayer.startRiding`. Tests: `advancements::tests::passenger_predicate_needs_a_matching_passenger`; clippy clean for horizon-client. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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:47 +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#5758
No description provided.