[PR #2686] [MERGED] No withers in Peaceful, raiders skip the spawn count, skeleton traps use local difficulty #4542

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

📋 Pull Request Information

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

Base: main ← Head: fix/wither-peaceful-raider-cap-trap-difficulty


📝 Commits (2)

  • bca4513 Keep withers out of Peaceful, raiders out of the spawn count, and use local difficulty for skeleton traps
  • 6ef20dc Merge remote-tracking branch 'origin/main' into HEAD

📊 Changes

3 files changed (+12 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/lightning.rs (+6 -2)
📝 crates/horizon-client/src/game/wither.rs (+2 -1)
📝 crates/horizon-client/src/mobs/raider.rs (+4 -0)

📄 Description

What and why

  • A wither can no longer be built in Peaceful: placing the third skull (by hand or from a dispenser) does nothing there, as in vanilla. Before, only the dispenser checked the difficulty.
  • Raiders that belong to a raid are left out of the natural spawn count, so a big raid does not stop monsters from spawning around the player. Vanilla skips every mob that needs custom persistence, and a raider in a raid does.
  • The lightning skeleton trap chance now uses the local effective difficulty at the strike (it grows with the time the chunk has been lived in, the moon and the world age), instead of a fixed number from the difficulty setting.

Vanilla reference

  • WitherSkullBlock.checkSpawn
  • NaturalSpawner.createState, Raider.requiresCustomPersistence
  • ServerLevel.tickThunder (getCurrentDifficultyAt(pos).getEffectiveDifficulty() * 0.01)

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/2686 **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/wither-peaceful-raider-cap-trap-difficulty` --- ### 📝 Commits (2) - [`bca4513`](https://github.com/horizon-rust/horizon/commit/bca4513187c8697ced3a13d709ae75d74498b5ee) Keep withers out of Peaceful, raiders out of the spawn count, and use local difficulty for skeleton traps - [`6ef20dc`](https://github.com/horizon-rust/horizon/commit/6ef20dc9af4cd51c1d914ba3412aaa552aaa42fb) Merge remote-tracking branch 'origin/main' into HEAD ### 📊 Changes **3 files changed** (+12 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lightning.rs` (+6 -2) 📝 `crates/horizon-client/src/game/wither.rs` (+2 -1) 📝 `crates/horizon-client/src/mobs/raider.rs` (+4 -0) </details> ### 📄 Description ## What and why - A wither can no longer be built in Peaceful: placing the third skull (by hand or from a dispenser) does nothing there, as in vanilla. Before, only the dispenser checked the difficulty. - Raiders that belong to a raid are left out of the natural spawn count, so a big raid does not stop monsters from spawning around the player. Vanilla skips every mob that needs custom persistence, and a raider in a raid does. - The lightning skeleton trap chance now uses the local effective difficulty at the strike (it grows with the time the chunk has been lived in, the moon and the world age), instead of a fixed number from the difficulty setting. ## Vanilla reference - `WitherSkullBlock.checkSpawn` - `NaturalSpawner.createState`, `Raider.requiresCustomPersistence` - `ServerLevel.tickThunder` (`getCurrentDifficultyAt(pos).getEffectiveDifficulty() * 0.01`) ## 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:56 +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#4542
No description provided.