[PR #2690] [MERGED] Enderman teleport trail, phantom wing dust and bee nectar drips #4544

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

📋 Pull Request Information

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

Base: main ← Head: fix/mob-ambient-particles


📝 Commits (2)

  • e5e1b74 Draw the enderman portal trail, phantom wing dust and bee nectar drips
  • 7d08cdf Merge main into fix/mob-ambient-particles

📊 Changes

6 files changed (+136 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+5 -0)
📝 crates/horizon-client/src/game/client_ambient.rs (+2 -0)
📝 crates/horizon-client/src/game/level_particles.rs (+9 -3)
📝 crates/horizon-client/src/mobs/ambient.rs (+67 -1)
📝 crates/horizon-client/src/mobs/enderman.rs (+16 -0)
📝 crates/horizon-client/src/particles.rs (+37 -0)

📄 Description

What and why

Three particle effects vanilla draws on the client, which Horizon never drew:

  • Enderman teleport trail: the server now sends level event 2018 (Enderman.teleport) when a visible enderman teleports. The client draws the 128 portal particles along the way from the old block to the new one, spread about an enderman's size. The two blocks travel packed as in BlockUtil.clampedPackDifferenceInPosition.
  • Phantom wings: every tick a phantom leaves two mycelium particles at its wing tips, at a height that follows its wing flap (Phantom.tick). It runs with the other client-side effects of mobs, so the window of a server and a window that simulates the world both draw it.
  • Bee nectar: a bee carrying nectar now and then drips a falling nectar particle (Bee.tick). The nectar flag has to reach the client for this to show: it does on a vanilla server, and on the server thread once the server sends the bee's data.

The new client-side effects draw from the client level's random, not the mob's own, so the mob's random draws stay as they were.

Vanilla reference

Enderman.teleport, LevelEventHandler.levelEvent (2018), BlockUtil.clampedPackDifferenceInPosition, Phantom.tick, Bee.tick, Bee.spawnFluidParticle.

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/2690 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/mob-ambient-particles` --- ### 📝 Commits (2) - [`e5e1b74`](https://github.com/horizon-rust/horizon/commit/e5e1b74fd89abf3e8b8263c3bf42039a5fec0ed8) Draw the enderman portal trail, phantom wing dust and bee nectar drips - [`7d08cdf`](https://github.com/horizon-rust/horizon/commit/7d08cdf8608b7af4bca4ba7550b7e22514fc9fc1) Merge main into fix/mob-ambient-particles ### 📊 Changes **6 files changed** (+136 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+5 -0) 📝 `crates/horizon-client/src/game/client_ambient.rs` (+2 -0) 📝 `crates/horizon-client/src/game/level_particles.rs` (+9 -3) 📝 `crates/horizon-client/src/mobs/ambient.rs` (+67 -1) 📝 `crates/horizon-client/src/mobs/enderman.rs` (+16 -0) 📝 `crates/horizon-client/src/particles.rs` (+37 -0) </details> ### 📄 Description ## What and why Three particle effects vanilla draws on the client, which Horizon never drew: - **Enderman teleport trail:** the server now sends level event 2018 (`Enderman.teleport`) when a visible enderman teleports. The client draws the 128 portal particles along the way from the old block to the new one, spread about an enderman's size. The two blocks travel packed as in `BlockUtil.clampedPackDifferenceInPosition`. - **Phantom wings:** every tick a phantom leaves two mycelium particles at its wing tips, at a height that follows its wing flap (`Phantom.tick`). It runs with the other client-side effects of mobs, so the window of a server and a window that simulates the world both draw it. - **Bee nectar:** a bee carrying nectar now and then drips a falling nectar particle (`Bee.tick`). The nectar flag has to reach the client for this to show: it does on a vanilla server, and on the server thread once the server sends the bee's data. The new client-side effects draw from the client level's random, not the mob's own, so the mob's random draws stay as they were. ## Vanilla reference `Enderman.teleport`, `LevelEventHandler.levelEvent` (2018), `BlockUtil.clampedPackDifferenceInPosition`, `Phantom.tick`, `Bee.tick`, `Bee.spawnFluidParticle`. ## 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:17:56 +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#4544
No description provided.