[GH-ISSUE #2760] the breeze and wind charge animation doesn't work #683

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

Originally created by @RaekonEK on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2760

the breeze and wind charge animation doesn't work

Originally created by @RaekonEK on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2760 the breeze and wind charge animation doesn't work
Author
Owner

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

🤖 Agent: The breeze/wind charge animation gap is a real missing piece (the mob's shoot/whirlwind anim). Leaving to the maintainer.

<!-- gh-comment-id:6443432253 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: The breeze/wind charge animation gap is a real missing piece (the mob's shoot/whirlwind anim). Leaving to the maintainer.
Author
Owner

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

🤖 Agent: the missing part is now in #2843 (my pull request): the breeze's gust and the wind charge are drawn with a texture that scrolls in vanilla, and Horizon drew both with a still texture.

  • BreezeWindLayer#submit draws the breeze's wind layer with RenderTypes.breezeWind(TEXTURE_LOCATION, xOffset(ageInTicks) % 1.0F, 0.0F), and xOffset(t) = t * 0.02F, so the gust's texture scrolls by 0.02 of the texture per tick.
  • WindChargeRenderer#submit does the same for the wind charge, with xOffset(t) = t * 0.03F.

Horizon's code even named the gap: "BreezeWindLayer (the scroll is not reproduced: atlas sprites do not wrap)". The pull request reproduces the scroll (the vertex's U moves by the offset and wraps around the texture) and uses it for the breeze's wind layer and for the wind charge.

What was already there and needed no change: the breeze's model layers (the entity model harness reports 0 layers differing from vanilla), its six keyframe animations (BreezeModel.setupAnim applies IDLE, SHOOT, SLIDE, SLIDE_BACK, INHALE and JUMP, and Horizon applies the same six from the same mob-data.json), the breeze's animation states, and the wind charge's own turn (WindChargeModel.setupAnim turns the wind_charge and wind parts).

Vanilla classes and methods: net.minecraft.client.renderer.entity.layers.BreezeWindLayer#submit and #xOffset, net.minecraft.client.renderer.entity.WindChargeRenderer#submit and #xOffset, net.minecraft.client.renderer.RenderTypes#breezeWind, net.minecraft.client.model.object.projectile.WindChargeModel#setupAnim, net.minecraft.client.model.monster.breeze.BreezeModel#setupAnim.

<!-- gh-comment-id:6444865994 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: the missing part is now in #2843 (my pull request): the breeze's gust and the wind charge are drawn with a texture that scrolls in vanilla, and Horizon drew both with a still texture. - `BreezeWindLayer#submit` draws the breeze's wind layer with `RenderTypes.breezeWind(TEXTURE_LOCATION, xOffset(ageInTicks) % 1.0F, 0.0F)`, and `xOffset(t) = t * 0.02F`, so the gust's texture scrolls by 0.02 of the texture per tick. - `WindChargeRenderer#submit` does the same for the wind charge, with `xOffset(t) = t * 0.03F`. Horizon's code even named the gap: "BreezeWindLayer (the scroll is not reproduced: atlas sprites do not wrap)". The pull request reproduces the scroll (the vertex's U moves by the offset and wraps around the texture) and uses it for the breeze's wind layer and for the wind charge. What was already there and needed no change: the breeze's model layers (the entity model harness reports 0 layers differing from vanilla), its six keyframe animations (`BreezeModel.setupAnim` applies IDLE, SHOOT, SLIDE, SLIDE_BACK, INHALE and JUMP, and Horizon applies the same six from the same `mob-data.json`), the breeze's animation states, and the wind charge's own turn (`WindChargeModel.setupAnim` turns the `wind_charge` and `wind` parts). Vanilla classes and methods: `net.minecraft.client.renderer.entity.layers.BreezeWindLayer#submit` and `#xOffset`, `net.minecraft.client.renderer.entity.WindChargeRenderer#submit` and `#xOffset`, `net.minecraft.client.renderer.RenderTypes#breezeWind`, `net.minecraft.client.model.object.projectile.WindChargeModel#setupAnim`, `net.minecraft.client.model.monster.breeze.BreezeModel#setupAnim`.
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#683
No description provided.