[PR #3951] [MERGED] Rendering parity: jeb_ sheep, golem walk tilt, spyglass particle hiding, skulls, brush, witch potion #5315

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3951
Author: @kacpherek
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/split-rendering


📝 Commits (10+)

  • 0e42a29 Cycle the wool of a jeb_ sheep through the dye colours
  • 2010ef4 Draw the wool undercoat on a white jeb_ sheep
  • 89d4b1c Tilt the iron golem body side to side while it walks
  • 6528d56 Hide spell particles near the eye while scoping with a spyglass
  • 245ea98 Show oak plank crumbs when an armor stand breaks
  • c2bd40f Show the pointing hand over chat insertion text while Shift is held
  • 8ef51c4 Sweep a brush in use like vanilla
  • 75b3750 Draw skulls worn in the mob head slot
  • 994820e Hold a spyglass to the eye for other players
  • a1454e0 Show the entity tooltip for chat hover events with advanced tooltips

📊 Changes

14 files changed (+381 additions, -17 deletions)

View changed files

📝 crates/horizon-client-core/src/component.rs (+4 -1)
📝 crates/horizon-client-core/src/text.rs (+10 -3)
📝 crates/horizon-client-render/src/particles.rs (+25 -1)
📝 crates/horizon-client/src/first_person.rs (+33 -0)
📝 crates/horizon-client/src/game.rs (+5 -0)
📝 crates/horizon-client/src/game/armor_stands.rs (+43 -0)
📝 crates/horizon-client/src/game/chat.rs (+50 -0)
📝 crates/horizon-client/src/game/commands/items.rs (+9 -2)
📝 crates/horizon-client/src/game/creatures.rs (+1 -1)
📝 crates/horizon-client/src/game/lan_particles.rs (+5 -2)
📝 crates/horizon-client/src/game/mob_blocks.rs (+100 -7)
📝 crates/horizon-client/src/game/render_tick.rs (+14 -0)
📝 crates/horizon-client/src/mobs/render.rs (+69 -0)
📝 crates/horizon-client/src/mobs/witch.rs (+13 -0)

📄 Description

What and why

  • Cycle the wool of a jeb_ sheep through the dye colours: A sheep named jeb_ kept its dyed colour; SheepRenderState.getWoolColor fades it through ColorLerper.getLerpedColor(SHEEP) (SheepRenderer.java, MobRenderer.checkMagicName).
  • Draw the wool undercoat on a white jeb_ sheep: A white sheep named jeb_ had no undercoat; SheepWoolUndercoatLayer.submit draws it for isJebSheep as well as for a dyed wool.
  • Tilt the iron golem body side to side while it walks: Only the arms and legs swung; IronGolemRenderer.setupRotations also rotates the body about Z by 6.5 degrees of a triangle wave of the walk position.
  • Hide spell particles near the eye while scoping with a spyglass: Spell particles stayed visible in the spyglass view; SpellParticle.isCloseToScopingPlayer sets their alpha to 0 within 3 blocks of the eye in first person while isScoping (SpellParticle.java).
  • Show oak plank crumbs when an armor stand breaks: A stand broken by a creative hand or the second hit made no plank particles; ArmorStand.showBreakingParticles sends ten oak plank block particles from the box (ArmorStand.java:369).
  • Show the pointing hand over chat insertion text while Shift is held: Hovering a chat part with an insertion never asked for the pointing hand; vanilla requests it in ChatComponent.java:672 when Shift is held (ChatScreen passes insertionClickMode).
  • Sweep a brush in use like vanilla: A brush in use was held still. FirstPersonHandsAndItemsRenderer.applyBrushTransform (FirstPersonHandsAndItemsRenderer.java:286) swings it back and forth over the use.
  • Draw skulls worn in the mob head slot: Zombie, skeleton, creeper and player heads in a mob's head slot were not drawn. head_item_geometry (CustomHeadLayer.submit, CustomHeadLayer.java:44) now draws a skull only on the renderers that add a CustomHeadLayer, lowers it by the villager's skull offset, draws it on an invisible mob too, and takes a player head's skin from its profile (resolveSkullRenderType, CustomHeadLayer.java:69).
  • Hold a spyglass to the eye for other players: A spyglass in use was drawn in the hand, not at the eye. PlayerItemInHandLayer.renderItemHeldToEye (PlayerItemInHandLayer.java:40) clamps the head pitch to -30 to 90 degrees and holds the item on the head.
  • Show the entity tooltip for chat hover events with advanced tooltips: Hovering a show_entity chat part showed nothing. With advancedItemTooltips on, vanilla lists the name, the entity type and the UUID (GuiGraphicsExtractor.componentHoverEffect; HoverEvent.java:84).
  • Refuse item counts above the max stack in item commands: item replace/fill/override accepted counts up to 99 above an item's max stack. ItemInput.createItemStack (ItemInput.java:21) throws arguments.item.overstacked instead.
  • Hold a witch's potion at her nose instead of in her hand: A drinking witch's potion was drawn in the hand with no potion contents. WitchItemLayer.applyTranslation (WitchItemLayer.java:17) holds the potion at the nose as a potion item.
  • Draw the block in a copper golem's antenna: The block item in a copper golem's antenna slot was never drawn. BlockDecorationLayer.submit (BlockDecorationLayer.java:33) draws it at CopperGolemModel.applyBlockOnAntennaTransform (CopperGolemModel.java:311).

Vanilla reference

Each commit message names the vanilla method and file it follows: SheepRenderer.java, SpellParticle.java, ArmorStand.java:369, ChatComponent.java:672, FirstPersonHandsAndItemsRenderer.java:286, CustomHeadLayer.java:44, CustomHeadLayer.java:69, PlayerItemInHandLayer.java:40, HoverEvent.java:84, ItemInput.java:21, WitchItemLayer.java:17, BlockDecorationLayer.java:33, CopperGolemModel.java:311

Self-check

Split out of #3926; merged main (head layer goes through main's head_item_geometry, no second skull path); rustfmt on changed files; built by CI; 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/3951 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/split-rendering` --- ### 📝 Commits (10+) - [`0e42a29`](https://github.com/horizon-rust/horizon/commit/0e42a29fdab904a6f52f57fe25cf2a274f55ba2b) Cycle the wool of a jeb_ sheep through the dye colours - [`2010ef4`](https://github.com/horizon-rust/horizon/commit/2010ef412f1a86f58795cae5015f96a8b79b5628) Draw the wool undercoat on a white jeb_ sheep - [`89d4b1c`](https://github.com/horizon-rust/horizon/commit/89d4b1ce315b056e04cc6fb7ee40f831fe3ccd1e) Tilt the iron golem body side to side while it walks - [`6528d56`](https://github.com/horizon-rust/horizon/commit/6528d566a1fc4b80cdaaffd2bd4f16745686e75b) Hide spell particles near the eye while scoping with a spyglass - [`245ea98`](https://github.com/horizon-rust/horizon/commit/245ea982b966645ca9310771c46d875c4ec01c9d) Show oak plank crumbs when an armor stand breaks - [`c2bd40f`](https://github.com/horizon-rust/horizon/commit/c2bd40f2709a716aac66d23c519b5a8e6e582da7) Show the pointing hand over chat insertion text while Shift is held - [`8ef51c4`](https://github.com/horizon-rust/horizon/commit/8ef51c4b69bc641a8c60ca237e9b629bdead86bd) Sweep a brush in use like vanilla - [`75b3750`](https://github.com/horizon-rust/horizon/commit/75b37506abacc96a4470b042a1bfcfb839a62174) Draw skulls worn in the mob head slot - [`994820e`](https://github.com/horizon-rust/horizon/commit/994820e69748732dde7ec9461ce83c90e79aee83) Hold a spyglass to the eye for other players - [`a1454e0`](https://github.com/horizon-rust/horizon/commit/a1454e00a20093b86d7e32aa4c502b23dcc2d3c8) Show the entity tooltip for chat hover events with advanced tooltips ### 📊 Changes **14 files changed** (+381 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-core/src/component.rs` (+4 -1) 📝 `crates/horizon-client-core/src/text.rs` (+10 -3) 📝 `crates/horizon-client-render/src/particles.rs` (+25 -1) 📝 `crates/horizon-client/src/first_person.rs` (+33 -0) 📝 `crates/horizon-client/src/game.rs` (+5 -0) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+43 -0) 📝 `crates/horizon-client/src/game/chat.rs` (+50 -0) 📝 `crates/horizon-client/src/game/commands/items.rs` (+9 -2) 📝 `crates/horizon-client/src/game/creatures.rs` (+1 -1) 📝 `crates/horizon-client/src/game/lan_particles.rs` (+5 -2) 📝 `crates/horizon-client/src/game/mob_blocks.rs` (+100 -7) 📝 `crates/horizon-client/src/game/render_tick.rs` (+14 -0) 📝 `crates/horizon-client/src/mobs/render.rs` (+69 -0) 📝 `crates/horizon-client/src/mobs/witch.rs` (+13 -0) </details> ### 📄 Description ## What and why - Cycle the wool of a jeb_ sheep through the dye colours: A sheep named jeb_ kept its dyed colour; SheepRenderState.getWoolColor fades it through ColorLerper.getLerpedColor(SHEEP) (SheepRenderer.java, MobRenderer.checkMagicName). - Draw the wool undercoat on a white jeb_ sheep: A white sheep named jeb_ had no undercoat; SheepWoolUndercoatLayer.submit draws it for isJebSheep as well as for a dyed wool. - Tilt the iron golem body side to side while it walks: Only the arms and legs swung; IronGolemRenderer.setupRotations also rotates the body about Z by 6.5 degrees of a triangle wave of the walk position. - Hide spell particles near the eye while scoping with a spyglass: Spell particles stayed visible in the spyglass view; SpellParticle.isCloseToScopingPlayer sets their alpha to 0 within 3 blocks of the eye in first person while isScoping (SpellParticle.java). - Show oak plank crumbs when an armor stand breaks: A stand broken by a creative hand or the second hit made no plank particles; ArmorStand.showBreakingParticles sends ten oak plank block particles from the box (ArmorStand.java:369). - Show the pointing hand over chat insertion text while Shift is held: Hovering a chat part with an insertion never asked for the pointing hand; vanilla requests it in ChatComponent.java:672 when Shift is held (ChatScreen passes insertionClickMode). - Sweep a brush in use like vanilla: A brush in use was held still. FirstPersonHandsAndItemsRenderer.applyBrushTransform (FirstPersonHandsAndItemsRenderer.java:286) swings it back and forth over the use. - Draw skulls worn in the mob head slot: Zombie, skeleton, creeper and player heads in a mob's head slot were not drawn. head_item_geometry (CustomHeadLayer.submit, CustomHeadLayer.java:44) now draws a skull only on the renderers that add a CustomHeadLayer, lowers it by the villager's skull offset, draws it on an invisible mob too, and takes a player head's skin from its profile (resolveSkullRenderType, CustomHeadLayer.java:69). - Hold a spyglass to the eye for other players: A spyglass in use was drawn in the hand, not at the eye. PlayerItemInHandLayer.renderItemHeldToEye (PlayerItemInHandLayer.java:40) clamps the head pitch to -30 to 90 degrees and holds the item on the head. - Show the entity tooltip for chat hover events with advanced tooltips: Hovering a show_entity chat part showed nothing. With advancedItemTooltips on, vanilla lists the name, the entity type and the UUID (GuiGraphicsExtractor.componentHoverEffect; HoverEvent.java:84). - Refuse item counts above the max stack in item commands: item replace/fill/override accepted counts up to 99 above an item's max stack. ItemInput.createItemStack (ItemInput.java:21) throws arguments.item.overstacked instead. - Hold a witch's potion at her nose instead of in her hand: A drinking witch's potion was drawn in the hand with no potion contents. WitchItemLayer.applyTranslation (WitchItemLayer.java:17) holds the potion at the nose as a potion item. - Draw the block in a copper golem's antenna: The block item in a copper golem's antenna slot was never drawn. BlockDecorationLayer.submit (BlockDecorationLayer.java:33) draws it at CopperGolemModel.applyBlockOnAntennaTransform (CopperGolemModel.java:311). ## Vanilla reference Each commit message names the vanilla method and file it follows: SheepRenderer.java, SpellParticle.java, ArmorStand.java:369, ChatComponent.java:672, FirstPersonHandsAndItemsRenderer.java:286, CustomHeadLayer.java:44, CustomHeadLayer.java:69, PlayerItemInHandLayer.java:40, HoverEvent.java:84, ItemInput.java:21, WitchItemLayer.java:17, BlockDecorationLayer.java:33, CopperGolemModel.java:311 ## Self-check Split out of #3926; merged main (head layer goes through main's head_item_geometry, no second skull path); rustfmt on changed files; built by CI; 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:11:44 +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#5315
No description provided.