[PR #2680] [MERGED] A spider with a rider stops biting, and hoglins shove with vanilla's knockback #4537

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

📋 Pull Request Information

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

Base: main ← Head: fix/spider-jockey-hoglin-toss


📝 Commits (1)

  • b22c42e Stop jockey spiders attacking and shove hoglin targets like vanilla

📊 Changes

3 files changed (+35 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/mobs.rs (+3 -0)
📝 crates/horizon-client/src/mobs/hostile.rs (+2 -1)
📝 crates/horizon-client/src/mobs/piglin.rs (+30 -5)

📄 Description

What and why

  • A spider that carries a rider (a spider jockey) no longer starts a melee attack. Vanilla's spider attack goal only starts when the spider is not a vehicle, so the jockey's skeleton does the shooting and the spider just walks.
  • A hoglin or zoglin hit now shoves the target as vanilla does: sideways away from the attacker (with the random turn vanilla uses) as well as up, and with the strength of the attack knockback minus the target's knockback resistance. When the resistance is as high as the knockback, the target is not shoved at all. Before, the shove went straight up only and ignored resistance. Mobs now share their knockback resistance with other mobs' AI (Seen) so the hoglin can read it. Players are treated as having none, as the rest of Horizon does today.

Vanilla reference

  • Spider.SpiderAttackGoal.canUse (!isVehicle())
  • HoglinBase.throwTarget

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/2680 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/spider-jockey-hoglin-toss` --- ### 📝 Commits (1) - [`b22c42e`](https://github.com/horizon-rust/horizon/commit/b22c42ea8579785b8bb7539b8e32b1ad1890119b) Stop jockey spiders attacking and shove hoglin targets like vanilla ### 📊 Changes **3 files changed** (+35 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs.rs` (+3 -0) 📝 `crates/horizon-client/src/mobs/hostile.rs` (+2 -1) 📝 `crates/horizon-client/src/mobs/piglin.rs` (+30 -5) </details> ### 📄 Description ## What and why - A spider that carries a rider (a spider jockey) no longer starts a melee attack. Vanilla's spider attack goal only starts when the spider is not a vehicle, so the jockey's skeleton does the shooting and the spider just walks. - A hoglin or zoglin hit now shoves the target as vanilla does: sideways away from the attacker (with the random turn vanilla uses) as well as up, and with the strength of the attack knockback minus the target's knockback resistance. When the resistance is as high as the knockback, the target is not shoved at all. Before, the shove went straight up only and ignored resistance. Mobs now share their knockback resistance with other mobs' AI (`Seen`) so the hoglin can read it. Players are treated as having none, as the rest of Horizon does today. ## Vanilla reference - `Spider.SpiderAttackGoal.canUse` (`!isVehicle()`) - `HoglinBase.throwTarget` ## 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:17:54 +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#4537
No description provided.