[PR #3127] [MERGED] Shulker bullets are drawn as the spinning bullet model, not a flat sprite #4815

Closed
opened 2026-11-03 05:08:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/shulker-bullet-model


📝 Commits (1)

  • 4a18a4b Draw the shulker bullet with its model instead of a sprite

📊 Changes

2 files changed (+61 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+57 -0)
📝 crates/horizon-client/src/projectiles.rs (+4 -3)

📄 Description

What and why

  • Players saw a shulker's bullet as a small orange, text-like square. Horizon had no shulker bullet renderer, so the bullet fell through to the item billboard and drew the whole spark.png texture flat.
  • The bullet is now drawn with the vanilla shulker_bullet model and entity/shulker/spark texture. It tumbles with age as in vanilla (Y, X and Z turns from sin/cos of age times 0.1 and 0.15) and sits 0.15 above its position.
  • A second copy, 1.5 times larger, is drawn over it with the vanilla colour 0x26FFFFFF, so the bullet has the faint translucent shell it has in vanilla.
  • The bullet always has full block light, as in vanilla. The model turns with the bullet's yaw and pitch, which the server-thread path already sends.
    Fixes #3115

Vanilla reference

  • ShulkerBulletRenderer.java:35-47: pose (translate 0.15, three rotations, scale -0.5/-0.5/0.5), opaque draw, then scale 1.5 and the translucent draw with colour 654311423.
  • ShulkerBulletRenderer.java:31-33: block light level 15.
  • ShulkerBulletModel.java:24-45: model and setupAnim (part yaw and pitch from the entity).

Self-check

fmt passes. Built and tested by this pull request's checks. Not run in game.


🔄 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/3127 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/shulker-bullet-model` --- ### 📝 Commits (1) - [`4a18a4b`](https://github.com/horizon-rust/horizon/commit/4a18a4bde4ad4910df9daeb6ca635a8eea9f2fa1) Draw the shulker bullet with its model instead of a sprite ### 📊 Changes **2 files changed** (+61 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+57 -0) 📝 `crates/horizon-client/src/projectiles.rs` (+4 -3) </details> ### 📄 Description ## What and why - Players saw a shulker's bullet as a small orange, text-like square. Horizon had no shulker bullet renderer, so the bullet fell through to the item billboard and drew the whole `spark.png` texture flat. - The bullet is now drawn with the vanilla `shulker_bullet` model and `entity/shulker/spark` texture. It tumbles with age as in vanilla (Y, X and Z turns from `sin`/`cos` of age times 0.1 and 0.15) and sits 0.15 above its position. - A second copy, 1.5 times larger, is drawn over it with the vanilla colour `0x26FFFFFF`, so the bullet has the faint translucent shell it has in vanilla. - The bullet always has full block light, as in vanilla. The model turns with the bullet's yaw and pitch, which the server-thread path already sends. Fixes #3115 ## Vanilla reference - `ShulkerBulletRenderer.java:35-47`: pose (translate 0.15, three rotations, scale -0.5/-0.5/0.5), opaque draw, then scale 1.5 and the translucent draw with colour 654311423. - `ShulkerBulletRenderer.java:31-33`: block light level 15. - `ShulkerBulletModel.java:24-45`: model and `setupAnim` (part yaw and pitch from the entity). ## Self-check fmt passes. Built and tested by this pull request's checks. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:09 +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#4815
No description provided.