[PR #2085] [MERGED] Stop endermen teleporting nonstop in the End #3993

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

📋 Pull Request Information

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

Base: main ← Head: fix/2084-enderman-teleport


📝 Commits (2)

  • 311c0f7 Stop endermen teleporting nonstop in the End
  • bde7679 Mobs: no rain or thunder outside the overworld

📊 Changes

2 files changed (+8 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+5 -2)
📝 crates/horizon-client/src/mobs/enderman.rs (+3 -2)

📄 Description

What and why

In the End, endermen kept teleporting around the whole island very fast, and got hurt while doing it.

Horizon treated the End as "daytime" (the mob world said it is bright because the sky darkness is 0 there). So after 30 seconds each enderman rolled the "flee the sun" teleport every tick, with about a 4% chance each time. Endermen also counted rain as water: if the world was raining, they took water damage every tick and teleported on every one, even though nothing rains in the End.

Now endermen skip the daylight teleport in the End, and rain does not hurt or teleport them in the End. Rain damage for other water-sensitive mobs is skipped in the End too.

Fixes #2084.

Vanilla reference

  • EnderMan.customServerAiStep: only runs the daylight teleport when Level.isBrightOutside(), which is false for dimensions with a fixed time like the End.
  • Level.isRainingAt / Level.precipitationAt: rain needs a biome with precipitation, and End biomes have none.
  • LivingEntity.aiStep: water-sensitive mobs are only hurt when isInWaterOrRain().

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/2085 **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/2084-enderman-teleport` --- ### 📝 Commits (2) - [`311c0f7`](https://github.com/horizon-rust/horizon/commit/311c0f7392d45ebf72ed637367d14c98978a614d) Stop endermen teleporting nonstop in the End - [`bde7679`](https://github.com/horizon-rust/horizon/commit/bde76794eed1b4902a4d13039395a848d819634c) Mobs: no rain or thunder outside the overworld ### 📊 Changes **2 files changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+5 -2) 📝 `crates/horizon-client/src/mobs/enderman.rs` (+3 -2) </details> ### 📄 Description ## What and why In the End, endermen kept teleporting around the whole island very fast, and got hurt while doing it. Horizon treated the End as "daytime" (the mob world said it is bright because the sky darkness is 0 there). So after 30 seconds each enderman rolled the "flee the sun" teleport every tick, with about a 4% chance each time. Endermen also counted rain as water: if the world was raining, they took water damage every tick and teleported on every one, even though nothing rains in the End. Now endermen skip the daylight teleport in the End, and rain does not hurt or teleport them in the End. Rain damage for other water-sensitive mobs is skipped in the End too. Fixes #2084. ## Vanilla reference - `EnderMan.customServerAiStep`: only runs the daylight teleport when `Level.isBrightOutside()`, which is false for dimensions with a fixed time like the End. - `Level.isRainingAt` / `Level.precipitationAt`: rain needs a biome with precipitation, and End biomes have none. - `LivingEntity.aiStep`: water-sensitive mobs are only hurt when `isInWaterOrRain()`. ## 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:13:51 +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#3993
No description provided.