[PR #2187] [MERGED] Shulker bullets make open shulkers teleport and duplicate #4085

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

📋 Pull Request Information

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

Base: main ← Head: fix/shulker-bullet-duplication


📝 Commits (3)

  • 4aa7838 Shulker bullets make open shulkers teleport and duplicate
  • 7fbfbb5 Shulker bullet split: draw the failure chance from the level's random
  • d7ec7b6 Shulker bullet split: record whether the shell was open at hit time

📊 Changes

3 files changed (+69 additions, -10 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+7 -3)
📝 crates/horizon-client/src/mobs/ai.rs (+8 -3)
📝 crates/horizon-client/src/mobs/shulker.rs (+54 -4)

📄 Description

What and why

In vanilla, a shulker that is hit by a shulker bullet while its shell is open teleports away and may leave a new shulker of the same colour behind. This is how shulkers multiply in end cities. Horizon only did the low-health teleport, so bullets never duplicated anything.

  • A bullet hit on an open shulker now teleports it, and then spawns a new closed shulker of the same colour where it stood. The chance is lowered by 1/5 for every other shulker within 8 blocks of the old spot.
  • As in vanilla, this is skipped when the low-health teleport was chosen for that same hit.
  • Levitation from a shulker bullet is now only applied to a player when the hit actually hurt (not when a shield blocked it). Mobs already worked this way.

Vanilla reference

  • Shulker.hurtServer and Shulker.hitByShulkerBullet
  • ShulkerBullet.onHitEntity (if (wasHurt) before adding levitation)

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/2187 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/shulker-bullet-duplication` --- ### 📝 Commits (3) - [`4aa7838`](https://github.com/horizon-rust/horizon/commit/4aa7838d1ba0434d8f5de4b0b0267b2698dd08e4) Shulker bullets make open shulkers teleport and duplicate - [`7fbfbb5`](https://github.com/horizon-rust/horizon/commit/7fbfbb5e2b16640613c14601caaeb367676c1216) Shulker bullet split: draw the failure chance from the level's random - [`d7ec7b6`](https://github.com/horizon-rust/horizon/commit/d7ec7b6077b73fa0159597d5f8ebdbf057701978) Shulker bullet split: record whether the shell was open at hit time ### 📊 Changes **3 files changed** (+69 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+7 -3) 📝 `crates/horizon-client/src/mobs/ai.rs` (+8 -3) 📝 `crates/horizon-client/src/mobs/shulker.rs` (+54 -4) </details> ### 📄 Description ## What and why In vanilla, a shulker that is hit by a shulker bullet while its shell is open teleports away and may leave a new shulker of the same colour behind. This is how shulkers multiply in end cities. Horizon only did the low-health teleport, so bullets never duplicated anything. - A bullet hit on an open shulker now teleports it, and then spawns a new closed shulker of the same colour where it stood. The chance is lowered by 1/5 for every other shulker within 8 blocks of the old spot. - As in vanilla, this is skipped when the low-health teleport was chosen for that same hit. - Levitation from a shulker bullet is now only applied to a player when the hit actually hurt (not when a shield blocked it). Mobs already worked this way. ## Vanilla reference - `Shulker.hurtServer` and `Shulker.hitByShulkerBullet` - `ShulkerBullet.onHitEntity` (`if (wasHurt)` before adding levitation) ## 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:35 +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#4085
No description provided.