[PR #2189] [MERGED] Dragon: find healing crystals in its grown box and cap healing at max #4087

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/2189
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: fix/dragon-crystal-heal-reach


📝 Commits (2)

  • 091a986 Dragon: find healing crystals in its grown box and cap healing at max
  • 8df89ca Merge main into fix/dragon-crystal-heal-reach

📊 Changes

1 file changed (+17 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game/dragon.rs (+17 -7)

📄 Description

What and why

The Ender Dragon looked for healing crystals in a flat 32 blocks around its position. In vanilla it looks in its own 16 by 8 box grown by 32 blocks, so crystals reach much further sideways (up to about 40 blocks) and the box sits above the dragon's feet (32 blocks below, 40 above). The dragon now finds crystals the same way, counting each crystal's own 2 by 2 box.

Healing also used a plain + 1.0, so the dragon could end up above its 200 maximum. It is now capped at the maximum, as setHealth does.

Vanilla reference

  • EnderDragon.checkCrystals
  • EntityTypes.ENDER_DRAGON (box 16 by 8) and EntityTypes.END_CRYSTAL (box 2 by 2)
  • LivingEntity.setHealth

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/2189 **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/dragon-crystal-heal-reach` --- ### 📝 Commits (2) - [`091a986`](https://github.com/horizon-rust/horizon/commit/091a98656ea98e1869b66ab9192075bdbadc4a29) Dragon: find healing crystals in its grown box and cap healing at max - [`8df89ca`](https://github.com/horizon-rust/horizon/commit/8df89ca4d60cdcc6a5242f62180bb39139374469) Merge main into fix/dragon-crystal-heal-reach ### 📊 Changes **1 file changed** (+17 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dragon.rs` (+17 -7) </details> ### 📄 Description ## What and why The Ender Dragon looked for healing crystals in a flat 32 blocks around its position. In vanilla it looks in its own 16 by 8 box grown by 32 blocks, so crystals reach much further sideways (up to about 40 blocks) and the box sits above the dragon's feet (32 blocks below, 40 above). The dragon now finds crystals the same way, counting each crystal's own 2 by 2 box. Healing also used a plain `+ 1.0`, so the dragon could end up above its 200 maximum. It is now capped at the maximum, as `setHealth` does. ## Vanilla reference - `EnderDragon.checkCrystals` - `EntityTypes.ENDER_DRAGON` (box 16 by 8) and `EntityTypes.END_CRYSTAL` (box 2 by 2) - `LivingEntity.setHealth` ## 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#4087
No description provided.