[PR #2362] [MERGED] Stop shulkers from targeting and shooting in Peaceful #4240

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

📋 Pull Request Information

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

Base: main ← Head: fix/shulker-peaceful


📝 Commits (1)

  • 605e8a1 Stop shulkers from targeting and shooting in Peaceful

📊 Changes

1 file changed (+10 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/mobs/shulker.rs (+10 -2)

📄 Description

What and why

Shulkers kept finding players and shooting bullets on Peaceful difficulty. In vanilla a shulker never targets or attacks anyone on Peaceful (it stays in the world, since it is not a monster for peaceful despawning).

The shulker's player target goal and its attack goal now both check that the difficulty is not Peaceful, the same three places vanilla checks it: when the target is searched, when the attack goal may start, and on each attack tick.

Vanilla reference

  • Shulker.ShulkerNearestAttackGoal.canUse: false on Peaceful.
  • Shulker.ShulkerAttackGoal.canUse and tick: only when the difficulty is not Peaceful.

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/2362 **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/shulker-peaceful` --- ### 📝 Commits (1) - [`605e8a1`](https://github.com/horizon-rust/horizon/commit/605e8a1488e9beac7a9f0551a212634af49131da) Stop shulkers from targeting and shooting in Peaceful ### 📊 Changes **1 file changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/shulker.rs` (+10 -2) </details> ### 📄 Description ## What and why Shulkers kept finding players and shooting bullets on Peaceful difficulty. In vanilla a shulker never targets or attacks anyone on Peaceful (it stays in the world, since it is not a monster for peaceful despawning). The shulker's player target goal and its attack goal now both check that the difficulty is not Peaceful, the same three places vanilla checks it: when the target is searched, when the attack goal may start, and on each attack tick. ## Vanilla reference - `Shulker.ShulkerNearestAttackGoal.canUse`: false on Peaceful. - `Shulker.ShulkerAttackGoal.canUse` and `tick`: only when the difficulty is not Peaceful. ## 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:15:43 +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#4240
No description provided.