[PR #2473] [MERGED] Let piglins celebrate a kill and dance over a hoglin #4348

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

📋 Pull Request Information

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

Base: main ← Head: fix/piglin-dance


📝 Commits (3)

  • 36c06d6 Let a piglin celebrate a killed target and dance over a hoglin
  • 1b0937a Piglin celebration: the dance roll and wasHurtBy as in PiglinAi
  • 2a7b79d Merge main into this branch (resolves the conflict with main)

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/lan.rs (+7 -0)
📝 crates/horizon-client/src/game/remote_mob_data.rs (+2 -0)
📝 crates/horizon-client/src/mobs/ai.rs (+3 -0)
📝 crates/horizon-client/src/mobs/piglin.rs (+96 -2)

📄 Description

What and why

Piglins never danced: the dance pose existed but nothing picked it.

When a piglin's target dies, it now starts the celebration: it keeps a celebrate spot (where the target fell) for 300 ticks and stays within 2 blocks of it. If the target was a hoglin, there is a one in ten chance it also dances, staying within 4 blocks at 0.6 speed. Being hurt ends both, as in vanilla. The dancing flag is synced, so a guest or the server-thread window draws the dance too.

The check runs before the target goals drop the dead target, so it sees the kill. Piglins only fight hoglins once #2359 is merged; until then only a player or other mob kill starts the celebration (without the dance).

Vanilla reference

  • StartCelebratingIfTargetDead and PiglinAi.wantsToDance (CELEBRATION_TIME 300, 0.1)
  • PiglinAi.initCelebrateActivity (GoToTargetLocation 2 blocks at 1.0, 4 blocks at 0.6 while dancing)
  • PiglinAi.wasHurtBy and Piglin.getArmPose (DATA_IS_DANCING)

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/2473 **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/piglin-dance` --- ### 📝 Commits (3) - [`36c06d6`](https://github.com/horizon-rust/horizon/commit/36c06d6133a3e09d95c5027aa89ee15620596c02) Let a piglin celebrate a killed target and dance over a hoglin - [`1b0937a`](https://github.com/horizon-rust/horizon/commit/1b0937abff5f0bbca3f00655164bd948845012fa) Piglin celebration: the dance roll and wasHurtBy as in PiglinAi - [`2a7b79d`](https://github.com/horizon-rust/horizon/commit/2a7b79dfb6ed556ec4ad8c514d0a0a0a4f021395) Merge main into this branch (resolves the conflict with main) ### 📊 Changes **4 files changed** (+108 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan.rs` (+7 -0) 📝 `crates/horizon-client/src/game/remote_mob_data.rs` (+2 -0) 📝 `crates/horizon-client/src/mobs/ai.rs` (+3 -0) 📝 `crates/horizon-client/src/mobs/piglin.rs` (+96 -2) </details> ### 📄 Description ## What and why Piglins never danced: the dance pose existed but nothing picked it. When a piglin's target dies, it now starts the celebration: it keeps a celebrate spot (where the target fell) for 300 ticks and stays within 2 blocks of it. If the target was a hoglin, there is a one in ten chance it also dances, staying within 4 blocks at 0.6 speed. Being hurt ends both, as in vanilla. The dancing flag is synced, so a guest or the server-thread window draws the dance too. The check runs before the target goals drop the dead target, so it sees the kill. Piglins only fight hoglins once #2359 is merged; until then only a player or other mob kill starts the celebration (without the dance). ## Vanilla reference - `StartCelebratingIfTargetDead` and `PiglinAi.wantsToDance` (`CELEBRATION_TIME` 300, 0.1) - `PiglinAi.initCelebrateActivity` (`GoToTargetLocation` 2 blocks at 1.0, 4 blocks at 0.6 while dancing) - `PiglinAi.wasHurtBy` and `Piglin.getArmPose` (`DATA_IS_DANCING`) ## 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:30 +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#4348
No description provided.