[GH-ISSUE #1893] End crystal explosion has sound but no explosion effect (macOS) #565

Closed
opened 2026-11-02 15:40:06 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1893

What I did: Put an obsidian block, a end crystal on it, and left-clicked it.
What happened: The end crystal exploded, also taking damage too, it breaks block on its height/layer, but no explosion effect.
What I expected: Normal End crystal explosion WITH explosion effect.
Horizon version: v0.2.58
OS, CPU, GPU: macOS, Apple M2 (CPU and GPU), 16 GB RAM
TNT does show explosion effect as expected.

Reported on Discord by Potato in #horizon-bugs · Discord thread
Tags: rendering, gameplay

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1893 > What I did: Put an obsidian block, a end crystal on it, and left-clicked it. > What happened: The end crystal exploded, also taking damage too, it breaks block on its height/layer, but no explosion effect. > What I expected: Normal End crystal explosion WITH explosion effect. > Horizon version: v0.2.58 > OS, CPU, GPU: macOS, Apple M2 (CPU and GPU), 16 GB RAM > TNT does show explosion effect as expected. Reported on Discord by **Potato** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1563984931040923779) Tags: rendering, gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [no_explosion_end_crystal_bug.mov](https://cdn.discordapp.com/attachments/1563984931040923779/1563984932752334858/no_explosion_end_crystal_bug.mov?ex=6adf9df9&is=6ade4c79&hm=bbe17771d46960627ad64faaeea6b7738c330623c68420cd773652d12131ff4b&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:40:06 +07:00
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. PR #2119 addresses End-crystal explosion particles. It is still open, so recommend keeping this issue open until the relevant fix lands and the reported behavior is verified.

<!-- gh-comment-id:6418475003 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. PR #2119 addresses End-crystal explosion particles. It is still open, so recommend keeping this issue open until the relevant fix lands and the reported behavior is verified.
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

Thanks Potato for the report! A fix is up in #2119: the End crystal explosion now shows its particles in single player. It's waiting for review.

<!-- gh-comment-id:6422827373 --> @kacpherek commented on GitHub (Oct 26, 2026): Thanks Potato for the report! A fix is up in #2119: the End crystal explosion now shows its particles in single player. It's waiting for review.
Author
Owner

@levzzz5154 commented on GitHub (Oct 27, 2026):

🤖 Agent: I checked the end crystal's explosion path on the current main and found where the effect is drawn, so the remaining gap is narrow: the LAN guest's turn, which #2119 already covers.

The explosion effect is drawn locally. Game::destroy_crystal (crates/horizon-client/src/game/dragon.rs) is EndCrystal.hurtServer: for a direct hit it removes the crystal and calls

self.server_explode(at, 6.0, super::explosion::BlockInteraction::Destroy, false);

server_explode (crates/horizon-client/src/game/explosion.rs) plays minecraft:entity.generic.explode and then draws the effect:

self.particles.explosion(center, radius, block_count, &|b| facts.is_air(world.block(b[0], b[1], b[2])));
self.lan_explode(center, radius, block_count);

ParticleEngine::explosion is ClientPacketListener.handleExplosion + ClientExplosionTracker: the explosion particle (minecraft:explosion_emitter for a radius of 2 or more, which the crystal's 6.0 is) plus up to 512 poof/smoke particles thrown from the air inside the radius. So the window that runs the level draws the same effect vanilla's client does when it gets the explode packet.

What the packet adds is the other clients. lan_explode builds ClientboundExplodePacket (the emitter, the sound and the push) and send_explosion sends it to the LAN guests within 64 blocks; it returns early when there is no LAN, which is correct for the window that already drew the effect itself.

The gap #2119 closes is the guest's turn: while a guest acts, the host holds the players (as_guest), so the explosion packet would reach only the host and never the other players. #2119 queues those explosions and flushes them when the turn ends, so every player (the guest too) gets the emitter.

Vanilla classes and methods: net.minecraft.world.entity.item.EndCrystal#hurtServer (the blast of radius 6 for a direct hit), net.minecraft.server.level.ServerLevel#explode (the ClientboundExplodePacket to every player within 64 blocks), net.minecraft.client.multiplayer.ClientPacketListener#handleExplosion and net.minecraft.client.multiplayer.ClientExplosionTracker (the explosion particle and the poof/smoke particles), net.minecraft.client.renderer.LevelRenderer/ExplosionRenderer (the explosion's drawn sprite).

I could not reproduce the crystal's destruction outside the dragon fight (the crystals Horizon tracks are the dragon fight's), so this is a reading of the code path, not a live run; the LAN guest's turn is the case I could not exercise either.

I cannot close this issue (no permission on the upstream repository), so I leave it open for a maintainer.

<!-- gh-comment-id:6434543983 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: I checked the end crystal's explosion path on the current `main` and found where the effect is drawn, so the remaining gap is narrow: the LAN guest's turn, which #2119 already covers. **The explosion effect is drawn locally.** `Game::destroy_crystal` (crates/horizon-client/src/game/dragon.rs) is `EndCrystal.hurtServer`: for a direct hit it removes the crystal and calls ```rust self.server_explode(at, 6.0, super::explosion::BlockInteraction::Destroy, false); ``` `server_explode` (crates/horizon-client/src/game/explosion.rs) plays `minecraft:entity.generic.explode` and then draws the effect: ```rust self.particles.explosion(center, radius, block_count, &|b| facts.is_air(world.block(b[0], b[1], b[2]))); self.lan_explode(center, radius, block_count); ``` `ParticleEngine::explosion` is `ClientPacketListener.handleExplosion` + `ClientExplosionTracker`: the explosion particle (`minecraft:explosion_emitter` for a radius of 2 or more, which the crystal's 6.0 is) plus up to 512 poof/smoke particles thrown from the air inside the radius. So the window that runs the level draws the same effect vanilla's client does when it gets the explode packet. **What the packet adds is the other clients.** `lan_explode` builds `ClientboundExplodePacket` (the emitter, the sound and the push) and `send_explosion` sends it to the LAN guests within 64 blocks; it returns early when there is no LAN, which is correct for the window that already drew the effect itself. **The gap #2119 closes** is the guest's turn: while a guest acts, the host holds the players (`as_guest`), so the explosion packet would reach only the host and never the other players. #2119 queues those explosions and flushes them when the turn ends, so every player (the guest too) gets the emitter. Vanilla classes and methods: `net.minecraft.world.entity.item.EndCrystal#hurtServer` (the blast of radius 6 for a direct hit), `net.minecraft.server.level.ServerLevel#explode` (the `ClientboundExplodePacket` to every player within 64 blocks), `net.minecraft.client.multiplayer.ClientPacketListener#handleExplosion` and `net.minecraft.client.multiplayer.ClientExplosionTracker` (the explosion particle and the poof/smoke particles), `net.minecraft.client.renderer.LevelRenderer`/`ExplosionRenderer` (the explosion's drawn sprite). I could not reproduce the crystal's destruction outside the dragon fight (the crystals Horizon tracks are the dragon fight's), so this is a reading of the code path, not a live run; the LAN guest's turn is the case I could not exercise either. I cannot close this issue (no permission on the upstream repository), so I leave it open for a maintainer.
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#565
No description provided.