[PR #2321] [MERGED] Apply Slowness with Bane of Arthropods #4202

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

📋 Pull Request Information

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

Base: main ← Head: fix/bane-slowness


📝 Commits (1)

  • e92937d Apply Slowness with Bane of Arthropods

📊 Changes

2 files changed (+63 additions, -19 deletions)

View changed files

📝 crates/horizon-client/src/game/enchant_effects.rs (+62 -18)
📝 crates/horizon-client/src/game/potions.rs (+1 -1)

📄 Description

What and why

Hitting a spider, silverfish or other arthropod with Bane of Arthropods did extra damage but never slowed it. The weapon's post-attack effects only handled minecraft:ignite, so the minecraft:apply_mob_effect entry in bane_of_arthropods.json was skipped. It now applies the effect: a random duration and amplifier between the level-based bounds (Slowness V for 1.5 s plus 0.5 s per extra level). Any other enchantment using apply_mob_effect on the victim works too.

Vanilla reference

  • ApplyMobEffect.apply: picks one effect of to_apply, Mth.randomBetween for duration (x20, rounded) and amplifier (rounded, at least 0), then addEffect.
  • data/minecraft/enchantment/bane_of_arthropods.json minecraft:post_attack (victim is in #sensitive_to_bane_of_arthropods, direct attack only).

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/2321 **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/bane-slowness` --- ### 📝 Commits (1) - [`e92937d`](https://github.com/horizon-rust/horizon/commit/e92937d956f8f2d5bb57bd945f80de91cece120c) Apply Slowness with Bane of Arthropods ### 📊 Changes **2 files changed** (+63 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/enchant_effects.rs` (+62 -18) 📝 `crates/horizon-client/src/game/potions.rs` (+1 -1) </details> ### 📄 Description ## What and why Hitting a spider, silverfish or other arthropod with Bane of Arthropods did extra damage but never slowed it. The weapon's post-attack effects only handled `minecraft:ignite`, so the `minecraft:apply_mob_effect` entry in `bane_of_arthropods.json` was skipped. It now applies the effect: a random duration and amplifier between the level-based bounds (Slowness V for 1.5 s plus 0.5 s per extra level). Any other enchantment using `apply_mob_effect` on the victim works too. ## Vanilla reference - `ApplyMobEffect.apply`: picks one effect of `to_apply`, `Mth.randomBetween` for duration (x20, rounded) and amplifier (rounded, at least 0), then `addEffect`. - `data/minecraft/enchantment/bane_of_arthropods.json` `minecraft:post_attack` (victim is in `#sensitive_to_bane_of_arthropods`, direct attack only). ## 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:26 +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#4202
No description provided.