[PR #2547] [MERGED] Draw mob variants: rabbit, parrot, axolotl, salmon size and baby models #4417

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

📋 Pull Request Information

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

Base: main ← Head: fix/variant-textures


📝 Commits (2)

  • 4cad82b Draw the variant of rabbits, parrots and axolotls, salmon sizes and the baby goat, polar bear, ocelot, turtle and armadillo
  • 0d496fd Save and load the variant of axolotls, rabbits, parrots, salmon and tropical fish

📊 Changes

2 files changed (+132 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/entity_nbt.rs (+66 -1)
📝 crates/horizon-client/src/mobs/render.rs (+66 -3)

📄 Description

What and why

Mobs drew the default texture or model whatever their variant. mobs/render.rs body() now follows vanilla for:

  • rabbit: brown, white, black, white splotched, gold, salt, the killer bunny (id 99, rabbit_caerbannog) and the "Toast" name tag texture, adult and baby;
  • parrot: red-blue, blue, green, yellow-blue, grey;
  • axolotl: lucy, wild, gold, cyan, blue, with the baby model and baby textures;
  • salmon: the small, medium or large model;
  • goat, polar bear, ocelot, turtle and armadillo: the baby model and baby texture (their animation code already handled babies, but the adult model was drawn);
  • zombie villager: the baby texture.

Fox is left to #2538, panda to its own branch. Llama and trader llama coats and carpets, tropical fish patterns and colours, and horse colours and markings already matched vanilla.

A second commit saves and loads the variant (Variant, RabbitType, type for salmon, the packed Variant of tropical fish). It was never stored in the entity NBT, so every saved rabbit came back brown and, now that the salmon size is drawn, every saved salmon would have come back small.

The server-thread client gets the same fields from #2540. That PR drops a rabbit type of 99; with this change the killer bunny can be allowed there.

Vanilla reference

RabbitRenderer, ParrotRenderer, AxolotlRenderer, SalmonRenderer, GoatRenderer, PolarBearRenderer, OcelotRenderer, TurtleRenderer, ArmadilloRenderer, ZombieVillagerRenderer; Rabbit, Salmon, Axolotl, Parrot and TropicalFish save data.

Self-check

cargo check -p horizon-client passes.


🔄 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/2547 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/variant-textures` --- ### 📝 Commits (2) - [`4cad82b`](https://github.com/horizon-rust/horizon/commit/4cad82b4a9cc6e25cce236866c389a5a45594933) Draw the variant of rabbits, parrots and axolotls, salmon sizes and the baby goat, polar bear, ocelot, turtle and armadillo - [`0d496fd`](https://github.com/horizon-rust/horizon/commit/0d496fdc8fc820d5f299102c57c4c17c8bd5da1a) Save and load the variant of axolotls, rabbits, parrots, salmon and tropical fish ### 📊 Changes **2 files changed** (+132 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entity_nbt.rs` (+66 -1) 📝 `crates/horizon-client/src/mobs/render.rs` (+66 -3) </details> ### 📄 Description ## What and why Mobs drew the default texture or model whatever their variant. `mobs/render.rs` `body()` now follows vanilla for: - rabbit: brown, white, black, white splotched, gold, salt, the killer bunny (id 99, `rabbit_caerbannog`) and the "Toast" name tag texture, adult and baby; - parrot: red-blue, blue, green, yellow-blue, grey; - axolotl: lucy, wild, gold, cyan, blue, with the baby model and baby textures; - salmon: the small, medium or large model; - goat, polar bear, ocelot, turtle and armadillo: the baby model and baby texture (their animation code already handled babies, but the adult model was drawn); - zombie villager: the baby texture. Fox is left to #2538, panda to its own branch. Llama and trader llama coats and carpets, tropical fish patterns and colours, and horse colours and markings already matched vanilla. A second commit saves and loads the variant (`Variant`, `RabbitType`, `type` for salmon, the packed `Variant` of tropical fish). It was never stored in the entity NBT, so every saved rabbit came back brown and, now that the salmon size is drawn, every saved salmon would have come back small. The server-thread client gets the same fields from #2540. That PR drops a rabbit type of 99; with this change the killer bunny can be allowed there. ## Vanilla reference `RabbitRenderer`, `ParrotRenderer`, `AxolotlRenderer`, `SalmonRenderer`, `GoatRenderer`, `PolarBearRenderer`, `OcelotRenderer`, `TurtleRenderer`, `ArmadilloRenderer`, `ZombieVillagerRenderer`; `Rabbit`, `Salmon`, `Axolotl`, `Parrot` and `TropicalFish` save data. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:00 +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#4417
No description provided.