[PR #1853] [MERGED] Endermen, endermites, blazes, eyes of ender, dried ghasts and end portals make their ambient effects #3818

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • c5a640d Endermen, endermites, blazes, eyes of ender, dried ghasts and end portals make their ambient effects

📊 Changes

7 files changed (+181 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/animate_tick.rs (+50 -0)
📝 crates/horizon-client/src/game.rs (+2 -0)
➕ crates/horizon-client/src/game/client_ambient.rs (+37 -0)
📝 crates/horizon-client/src/game/end.rs (+35 -1)
📝 crates/horizon-client/src/game/remote.rs (+1 -0)
📝 crates/horizon-client/src/mobs.rs (+1 -0)
➕ crates/horizon-client/src/mobs/ambient.rs (+55 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What the player reported

.dezerx on Discord (#horizon-bugs, 2026-10-25, single player): endermen and endermites have no purple particles, the eye of ender has no particles, blazes have no fire particles, no green particles when a dried ghast is put in water; later "no animation for end portal".

Vanilla rule

The level().isClientSide() branches, which each client runs for its own copy:

  • Enderman.aiStep: 2 PORTAL a tick at getRandomX(0.5), getRandomY() − 0.25, getRandomZ(0.5), speed ((r − 0.5) × 2, −r, (r − 0.5) × 2); Endermite.aiStep the same without the −0.25.
  • Blaze.aiStep: nextInt(24) == 0 and not silent → entity.blaze.burn (volume 1 + r, pitch r × 0.7 + 0.3) at the position + 0.5; then 2 LARGE_SMOKE a tick.
  • EyeOfEnder.tick: from newPosition − movement × 0.25, 4 BUBBLE in water, else 1 PORTAL (x, z ± 0.3, y − 0.5) with the movement as speed.
  • DriedGhastBlock.animateTick: dry, 1/40 block.dried_ghast.ambient over #triggers_ambient_dried_ghast_block_sounds, 1/6 WHITE_SMOKE; waterlogged, 1/40 ambient_water, 1/6 HAPPY_VILLAGER rising.
  • EndPortalBlock.animateTick: one SMOKE at y + 0.8.

Cause

Missing in every mode: none of these ran anywhere.

Change

  • mobs/ambient.rs (lib): client_ai_step for endermen, endermites and blazes, in vanilla's random order.
  • game/client_ambient.rs: runs it for the window's game each tick (in-frame next to tick_particles, and in the remote tick), never on a server thread or dedicated server, so nothing doubles and nothing goes over the network; the burn plays play_unshared (a LAN host's guests make their own).
  • end.rs: eye_particles for the eyes in flight (the window's own, or a server's tracked ones).
  • animate_tick.rs: DriedGhast and EndPortal.

Tested

  • Server thread: an enderman and an endermite trail purple portal particles, a blaze smokes and its burn is heard (heard: entity.blaze.burn), a waterlogged dried ghast gives green sparkles, a thrown eye of ender leaves a purple trail (third person).
  • --in-frame: the same scene, same particles, the burn heard once per roll.
  • LAN guests run the remote path; a LAN host's window runs the in-frame one.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at e28b45376, 12 min 27 s)

Check Result
Scope ✅ 7 files, +181 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (19 s)
clippy ✅ (1 min 27 s)
tests: horizon-client ✅ 1236 passed (9 min 36 s)
doc tests ✅ 0 passed (5 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 108 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 96 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Named harnesses (local): block_particles PASS, ambient_sound PASS.

🤖 Generated with Claude Code


🔄 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/1853 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/mob-ambient-particles` --- ### 📝 Commits (1) - [`c5a640d`](https://github.com/horizon-rust/horizon/commit/c5a640dd56c0ac7607fc056934ef7471a6eb60a6) Endermen, endermites, blazes, eyes of ender, dried ghasts and end portals make their ambient effects ### 📊 Changes **7 files changed** (+181 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/animate_tick.rs` (+50 -0) 📝 `crates/horizon-client/src/game.rs` (+2 -0) ➕ `crates/horizon-client/src/game/client_ambient.rs` (+37 -0) 📝 `crates/horizon-client/src/game/end.rs` (+35 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs.rs` (+1 -0) ➕ `crates/horizon-client/src/mobs/ambient.rs` (+55 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What the player reported .dezerx on Discord (#horizon-bugs, 2026-10-25, single player): endermen and endermites have no purple particles, the eye of ender has no particles, blazes have no fire particles, no green particles when a dried ghast is put in water; later "no animation for end portal". ## Vanilla rule The `level().isClientSide()` branches, which each client runs for its own copy: - `Enderman.aiStep`: 2 `PORTAL` a tick at `getRandomX(0.5), getRandomY() − 0.25, getRandomZ(0.5)`, speed `((r − 0.5) × 2, −r, (r − 0.5) × 2)`; `Endermite.aiStep` the same without the −0.25. - `Blaze.aiStep`: `nextInt(24) == 0` and not silent → `entity.blaze.burn` (volume `1 + r`, pitch `r × 0.7 + 0.3`) at the position + 0.5; then 2 `LARGE_SMOKE` a tick. - `EyeOfEnder.tick`: from `newPosition − movement × 0.25`, 4 `BUBBLE` in water, else 1 `PORTAL` (x, z ± 0.3, y − 0.5) with the movement as speed. - `DriedGhastBlock.animateTick`: dry, 1/40 `block.dried_ghast.ambient` over `#triggers_ambient_dried_ghast_block_sounds`, 1/6 `WHITE_SMOKE`; waterlogged, 1/40 `ambient_water`, 1/6 `HAPPY_VILLAGER` rising. - `EndPortalBlock.animateTick`: one `SMOKE` at y + 0.8. ## Cause Missing in every mode: none of these ran anywhere. ## Change - `mobs/ambient.rs` (lib): `client_ai_step` for endermen, endermites and blazes, in vanilla's random order. - `game/client_ambient.rs`: runs it for the window's game each tick (in-frame next to `tick_particles`, and in the remote tick), never on a server thread or dedicated server, so nothing doubles and nothing goes over the network; the burn plays `play_unshared` (a LAN host's guests make their own). - end.rs: `eye_particles` for the eyes in flight (the window's own, or a server's tracked ones). - animate_tick.rs: `DriedGhast` and `EndPortal`. ## Tested - Server thread: an enderman and an endermite trail purple portal particles, a blaze smokes and its burn is heard (`heard`: `entity.blaze.burn`), a waterlogged dried ghast gives green sparkles, a thrown eye of ender leaves a purple trail (third person). - `--in-frame`: the same scene, same particles, the burn heard once per roll. - LAN guests run the remote path; a LAN host's window runs the in-frame one. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at e28b45376, 12 min 27 s) | Check | Result | | --- | --- | | Scope | ✅ 7 files, +181 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (19 s) | | clippy | ✅ (1 min 27 s) | | tests: horizon-client | ✅ 1236 passed (9 min 36 s) | | doc tests | ✅ 0 passed (5 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 108 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 96 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Named harnesses (local): block_particles PASS, ambient_sound PASS. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:12:32 +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#3818
No description provided.