[PR #2986] [MERGED] Entity rendering: the enderman's carried block, the fox's held item, the iron golem's poppy, the skeleton's freeze shake and shadow radii as vanilla #4737

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

📋 Pull Request Information

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

Base: main ← Head: fix/entity-rendering-parity


📝 Commits (6)

  • f83310a Shake a skeleton while it freezes into a stray
  • 16d71b0 Cast a giant's shadow at 3 blocks
  • 85f2a9a Draw an enderman's carried block as its baked model
  • 52a820e Match vanilla's shadow radius for armadillos, elder guardians, happy ghasts and shulkers
  • 1509972 Draw the item a fox holds in its mouth
  • c5dead2 Draw the poppy an iron golem offers

📊 Changes

6 files changed (+126 additions, -92 deletions)

View changed files

📝 crates/horizon-client/src/game/lan.rs (+8 -0)
📝 crates/horizon-client/src/game/minecarts.rs (+20 -0)
📝 crates/horizon-client/src/game/mob_blocks.rs (+44 -90)
📝 crates/horizon-client/src/game/remote_mob_data.rs (+5 -0)
📝 crates/horizon-client/src/mobs/render.rs (+42 -1)
📝 crates/horizon-client/src/shadows.rs (+7 -1)

📄 Description

What and why

  • An enderman's carried block is drawn as its real model (a grass block keeps its sides, a flower is a flower) and in the right place. It was a cube of one face sprite, centred half a block off.
  • A fox shows the item it holds in its mouth, sleeping and baby poses included. Nothing was drawn before.
  • An iron golem offering a poppy holds it out in its right arm. The offer ran but was never drawn.
  • A skeleton in powder snow shakes while it freezes into a stray, in single player and on a server. The flag was never sent or read.
  • Shadow radius: giant 3.0, armadillo 0.4, elder guardian 1.2, happy ghast 2.0, shulker none. All used the 0.5 default.

Vanilla reference

  • CarriedBlockLayer.java:21-31, EndermanRenderer.java:54-58 (block model, seed 42, no centring).
  • FoxHeldItemLayer.java:21-48, FoxRenderer.java:73, HoldingEntityRenderState.java:15 (ground context).
  • IronGolemFlowerLayer.java:22-31, IronGolem.java:123.
  • Skeleton.java:18-36 (DATA_STRAY_CONVERSION_ID, isShaking), AbstractSkeletonRenderer.java:28-33.
  • GiantMobRenderer.java:19 (0.5 x 6), ArmadilloRenderer.java:23, ElderGuardianRenderer.java:14, HappyGhastRenderer.java:28, ShulkerRenderer.java:29.

Self-check

clippy and fmt pass for horizon-client. 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/2986 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/entity-rendering-parity` --- ### 📝 Commits (6) - [`f83310a`](https://github.com/horizon-rust/horizon/commit/f83310a891475ce441b3dc43e5ec00cacde3b17c) Shake a skeleton while it freezes into a stray - [`16d71b0`](https://github.com/horizon-rust/horizon/commit/16d71b0a2437b32c5176d713d6e8d2ca1f3c3129) Cast a giant's shadow at 3 blocks - [`85f2a9a`](https://github.com/horizon-rust/horizon/commit/85f2a9ad87a65c24f625fba0dad0afb64a458e06) Draw an enderman's carried block as its baked model - [`52a820e`](https://github.com/horizon-rust/horizon/commit/52a820e708f1dd0811eaab8075763bd88e726f16) Match vanilla's shadow radius for armadillos, elder guardians, happy ghasts and shulkers - [`1509972`](https://github.com/horizon-rust/horizon/commit/15099724edce098dba14e484b481afb72ef19fdb) Draw the item a fox holds in its mouth - [`c5dead2`](https://github.com/horizon-rust/horizon/commit/c5dead28a068bdd8614db59313278f53d2c194e5) Draw the poppy an iron golem offers ### 📊 Changes **6 files changed** (+126 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan.rs` (+8 -0) 📝 `crates/horizon-client/src/game/minecarts.rs` (+20 -0) 📝 `crates/horizon-client/src/game/mob_blocks.rs` (+44 -90) 📝 `crates/horizon-client/src/game/remote_mob_data.rs` (+5 -0) 📝 `crates/horizon-client/src/mobs/render.rs` (+42 -1) 📝 `crates/horizon-client/src/shadows.rs` (+7 -1) </details> ### 📄 Description ## What and why - An enderman's carried block is drawn as its real model (a grass block keeps its sides, a flower is a flower) and in the right place. It was a cube of one face sprite, centred half a block off. - A fox shows the item it holds in its mouth, sleeping and baby poses included. Nothing was drawn before. - An iron golem offering a poppy holds it out in its right arm. The offer ran but was never drawn. - A skeleton in powder snow shakes while it freezes into a stray, in single player and on a server. The flag was never sent or read. - Shadow radius: giant 3.0, armadillo 0.4, elder guardian 1.2, happy ghast 2.0, shulker none. All used the 0.5 default. ## Vanilla reference - CarriedBlockLayer.java:21-31, EndermanRenderer.java:54-58 (block model, seed 42, no centring). - FoxHeldItemLayer.java:21-48, FoxRenderer.java:73, HoldingEntityRenderState.java:15 (ground context). - IronGolemFlowerLayer.java:22-31, IronGolem.java:123. - Skeleton.java:18-36 (DATA_STRAY_CONVERSION_ID, isShaking), AbstractSkeletonRenderer.java:28-33. - GiantMobRenderer.java:19 (0.5 x 6), ArmadilloRenderer.java:23, ElderGuardianRenderer.java:14, HappyGhastRenderer.java:28, ShulkerRenderer.java:29. ## Self-check clippy and fmt pass for horizon-client. 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:07:34 +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#4737
No description provided.