[PR #2467] [MERGED] Make execute on origin and leasher find their entity #4343

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

📋 Pull Request Information

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

Base: main ← Head: fix/execute-on-origin-leasher


📝 Commits (2)

  • ffc343a Make execute on origin and leasher find their entity
  • abb4e7b Record the thrower of guest drops and the player behind a lead

📊 Changes

4 files changed (+82 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+9 -2)
📝 crates/horizon-client/src/game/commands/execute.rs (+66 -0)
📝 crates/horizon-client/src/game/leads.rs (+5 -0)
📝 crates/horizon-client/src/mobs.rs (+2 -0)

📄 Description

What and why

execute on origin and execute on leasher always ran nothing. Now:

  • origin follows who shot a projectile (a player, a guest or a mob), who threw a dropped item, and who summoned a vex.
  • leasher follows the holder of a mob's lead (the player or another mob).

Not covered, because Horizon does not track it as an entity or does not store an owner: lead holders that are fence knots, and the owners of primed TNT, area effect clouds, evoker fangs, fishing hooks and fireworks.

Vanilla reference

ExecuteCommand.createRelationOperations (TraceableEntity.getOwner, Leashable.getLeashHolder).

Self-check

cargo check -p horizon-client passes.


🔄 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/2467 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/execute-on-origin-leasher` --- ### 📝 Commits (2) - [`ffc343a`](https://github.com/horizon-rust/horizon/commit/ffc343aadd48cefd6d4aa95c6fa946ae9f6310f8) Make execute on origin and leasher find their entity - [`abb4e7b`](https://github.com/horizon-rust/horizon/commit/abb4e7b5cd6a22fce0aa543e4266fbff8ae275ac) Record the thrower of guest drops and the player behind a lead ### 📊 Changes **4 files changed** (+82 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+9 -2) 📝 `crates/horizon-client/src/game/commands/execute.rs` (+66 -0) 📝 `crates/horizon-client/src/game/leads.rs` (+5 -0) 📝 `crates/horizon-client/src/mobs.rs` (+2 -0) </details> ### 📄 Description ## What and why `execute on origin` and `execute on leasher` always ran nothing. Now: - `origin` follows who shot a projectile (a player, a guest or a mob), who threw a dropped item, and who summoned a vex. - `leasher` follows the holder of a mob's lead (the player or another mob). Not covered, because Horizon does not track it as an entity or does not store an owner: lead holders that are fence knots, and the owners of primed TNT, area effect clouds, evoker fangs, fishing hooks and fireworks. ## Vanilla reference `ExecuteCommand.createRelationOperations` (`TraceableEntity.getOwner`, `Leashable.getLeashHolder`). ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16: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#4343
No description provided.