[PR #2421] [MERGED] Mobs get wither from a wither rose, bees get poison from an open eyeblossom #4299

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

📋 Pull Request Information

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

Base: main ← Head: fix/bee-wither-rose-eyeblossom-contact


📝 Commits (2)

  • 7112d0c Mobs standing in a wither rose get wither, bees in an open eyeblossom get poison
  • c808fae Keep a stronger active effect when a weaker one is added

📊 Changes

2 files changed (+60 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/mobs.rs (+9 -2)
📝 crates/horizon-client/src/mobs/ai.rs (+51 -0)

📄 Description

What and why

A mob that walks into a wither rose should get the wither effect, and a bee that flies into an open eyeblossom should be poisoned. In Horizon, only the player reacted to the wither rose, and bees were never poisoned by an eyeblossom.

Each mob tick now looks at the blocks its box touches (at the start and end of the tick):

  • Wither rose: any living mob gets wither for 40 ticks, unless the world is peaceful, the mob is still in its hit invulnerability, or it is a wither or a wither skeleton (they refuse the effect).
  • Open eyeblossom: a bee that is not already poisoned gets poison for 25 ticks, if the flower attracts bees and is not waterlogged. Not in peaceful.

This is only the contact effect. It is separate from #2243, which is about bees getting an effect when they feed on these flowers.

Vanilla reference

  • WitherRoseBlock.entityInside
  • EyeblossomBlock.entityInside, Bee.attractsBees
  • WitherBoss.canBeAffected, WitherSkeleton.canBeAffected
  • Entity.isInvulnerableToBase, Entity.checkInsideBlocks

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/2421 **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/bee-wither-rose-eyeblossom-contact` --- ### 📝 Commits (2) - [`7112d0c`](https://github.com/horizon-rust/horizon/commit/7112d0cd6498c6e16020230a2868e8f0d0ba4e3f) Mobs standing in a wither rose get wither, bees in an open eyeblossom get poison - [`c808fae`](https://github.com/horizon-rust/horizon/commit/c808fae288d36c682b143edb4e1283438437e165) Keep a stronger active effect when a weaker one is added ### 📊 Changes **2 files changed** (+60 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs.rs` (+9 -2) 📝 `crates/horizon-client/src/mobs/ai.rs` (+51 -0) </details> ### 📄 Description ## What and why A mob that walks into a wither rose should get the wither effect, and a bee that flies into an open eyeblossom should be poisoned. In Horizon, only the player reacted to the wither rose, and bees were never poisoned by an eyeblossom. Each mob tick now looks at the blocks its box touches (at the start and end of the tick): - **Wither rose**: any living mob gets wither for 40 ticks, unless the world is peaceful, the mob is still in its hit invulnerability, or it is a wither or a wither skeleton (they refuse the effect). - **Open eyeblossom**: a bee that is not already poisoned gets poison for 25 ticks, if the flower attracts bees and is not waterlogged. Not in peaceful. This is only the contact effect. It is separate from #2243, which is about bees getting an effect when they feed on these flowers. ## Vanilla reference - `WitherRoseBlock.entityInside` - `EyeblossomBlock.entityInside`, `Bee.attractsBees` - `WitherBoss.canBeAffected`, `WitherSkeleton.canBeAffected` - `Entity.isInvulnerableToBase`, `Entity.checkInsideBlocks` ## 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:16:09 +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#4299
No description provided.