[PR #2135] [MERGED] Infested blocks release their silverfish when broken #4035

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

📋 Pull Request Information

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

Base: main ← Head: fix/infested-blocks-silverfish


📝 Commits (1)

  • a8205dd Infested blocks release their silverfish when broken

📊 Changes

2 files changed (+16 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+15 -0)
📝 crates/horizon-client/src/game/spawner.rs (+1 -1)

📄 Description

What and why

Breaking an infested block (infested stone, cobblestone, stone bricks, deepslate and the rest) never released a silverfish, so strongholds and mountain caves were harmless to mine. Nothing in Horizon spawned the infestation.

Vanilla InfestedBlock.spawnAfterBreak spawns a silverfish at the block (with its spawn poof) when the block is broken, unless the tool has an enchantment in #prevents_infested_spawns (silk touch) or the block_drops game rule is off. Now a player breaking an infested block does the same, in single player and for server players (both go through break_block_as_player).

Not covered: infested blocks destroyed by an explosion (vanilla also calls spawnAfterBreak there, with no tool).

Vanilla reference

  • InfestedBlock.spawnAfterBreak and spawnInfestation
  • data/minecraft/tags/enchantment/prevents_infested_spawns.json

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/2135 **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/infested-blocks-silverfish` --- ### 📝 Commits (1) - [`a8205dd`](https://github.com/horizon-rust/horizon/commit/a8205dd80dc43779ec22d213e412ef97805553c6) Infested blocks release their silverfish when broken ### 📊 Changes **2 files changed** (+16 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+15 -0) 📝 `crates/horizon-client/src/game/spawner.rs` (+1 -1) </details> ### 📄 Description ## What and why Breaking an infested block (infested stone, cobblestone, stone bricks, deepslate and the rest) never released a silverfish, so strongholds and mountain caves were harmless to mine. Nothing in Horizon spawned the infestation. Vanilla `InfestedBlock.spawnAfterBreak` spawns a silverfish at the block (with its spawn poof) when the block is broken, unless the tool has an enchantment in `#prevents_infested_spawns` (silk touch) or the `block_drops` game rule is off. Now a player breaking an infested block does the same, in single player and for server players (both go through `break_block_as_player`). Not covered: infested blocks destroyed by an explosion (vanilla also calls `spawnAfterBreak` there, with no tool). ## Vanilla reference - `InfestedBlock.spawnAfterBreak` and `spawnInfestation` - `data/minecraft/tags/enchantment/prevents_infested_spawns.json` ## 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:14:12 +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#4035
No description provided.