[GH-ISSUE #2759] Armadillo never turn into ball #680

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

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

In Minecraft Java Edition: when Armadillo get attacked by a player or runned by a player he will turn into a ball
In Minecraft Rust Edition: when Armadillo get attacked by a player or runned by a player he will not react to any of that

Originally created by @RaekonEK on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2759 In Minecraft Java Edition: when Armadillo get attacked by a player or runned by a player he will turn into a ball In Minecraft Rust Edition: when Armadillo get attacked by a player or runned by a player he will not react to any of that
Author
Owner

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

🤖 Agent: The armadillo never rolling into a ball when attacked or approached is a real missing behaviour (its damage/roll reaction). The armadillo's other fixes (scutes, brush, roll) are already merged but this one's separate. Leaving to the maintainer.

<!-- gh-comment-id:6443439364 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: The armadillo never rolling into a ball when attacked or approached is a real missing behaviour (its damage/roll reaction). The armadillo's other fixes (scutes, brush, roll) are already merged but this one's separate. Leaving to the maintainer.
Author
Owner

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

🤖 Agent: Already fixed on main — 11e1ff12d ("Let armadillos roll up when scared, peek out and take less damage as a ball", Oct 26) added the full scare/roll system: scared_by_someone matches vanilla's isScaredBy (a sprinting or riding player, or the last attacker, within 7 blocks) and after_hurt rolls it up on a hit. It isn't in a tagged release yet, so the report's build predates it — should be in the next one. Suggest retesting on the upcoming release and closing.

<!-- gh-comment-id:6444036848 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: Already fixed on main — `11e1ff12d` ("Let armadillos roll up when scared, peek out and take less damage as a ball", Oct 26) added the full scare/roll system: `scared_by_someone` matches vanilla's `isScaredBy` (a sprinting or riding player, or the last attacker, within 7 blocks) and `after_hurt` rolls it up on a hit. It isn't in a tagged release yet, so the report's build predates it — should be in the next one. Suggest retesting on the upcoming release and closing.
Author
Owner

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

🤖 Agent: The roll is on main now - PR #2535 ("Let armadillos roll up when scared, peek out and take less damage"), merged on 2026-10-27, after this report was filed. An armadillo hit by a living thing curls up (Armadillo.actuallyHurt -> rollUp), the roll plays entity.armadillo.roll, and ArmadilloState.shouldHideInShell then shows the shell instead of the armadillo; a sprinting or riding player within 7x2x7 blocks, an undead mob or the last attacker scares it into a ball as well.

Nothing held that in place - the entity model harness compares the model's parts and cannot see the entity's own state - so PR #2852 adds the missing test: it drives the hurt reaction and the armadillo's tick and pins the vanilla's behaviour (the hit rolls it up, the roll plays its sound, the model shows the shell).

What I verified on current main:

  • python3 tools/test_entity_model_parity.py --filter armadillo -> 74 cases compared over 2 layers ... entity model parity ok: the armadillo's model, the shell included, is vanilla's.
  • The new test in PR #2852 passes; with the roll-up taken out of the hurt reaction it fails (left: 0, still IDLE, right: 1, ROLLING).

Vanilla (26.3): Armadillo.actuallyHurt, Armadillo.rollUp, Armadillo.canStayRolledUp, Armadillo.ArmadilloState.shouldHideInShell and ArmadilloModel.setupAnim.

<!-- gh-comment-id:6445678802 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: The roll is on `main` now - PR #2535 ("Let armadillos roll up when scared, peek out and take less damage"), merged on 2026-10-27, after this report was filed. An armadillo hit by a living thing curls up (`Armadillo.actuallyHurt` -> `rollUp`), the roll plays `entity.armadillo.roll`, and `ArmadilloState.shouldHideInShell` then shows the shell instead of the armadillo; a sprinting or riding player within 7x2x7 blocks, an undead mob or the last attacker scares it into a ball as well. Nothing held that in place - the entity model harness compares the model's parts and cannot see the entity's own state - so PR #2852 adds the missing test: it drives the hurt reaction and the armadillo's tick and pins the vanilla's behaviour (the hit rolls it up, the roll plays its sound, the model shows the shell). What I verified on current `main`: - `python3 tools/test_entity_model_parity.py --filter armadillo` -> `74 cases compared over 2 layers` ... `entity model parity ok`: the armadillo's model, the shell included, is vanilla's. - The new test in PR #2852 passes; with the roll-up taken out of the hurt reaction it fails (`left: 0`, still IDLE, `right: 1`, ROLLING). Vanilla (26.3): `Armadillo.actuallyHurt`, `Armadillo.rollUp`, `Armadillo.canStayRolledUp`, `Armadillo.ArmadilloState.shouldHideInShell` and `ArmadilloModel.setupAnim`.
Author
Owner

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

Fixed by #2535: armadillos roll up when hit or scared by a sprinting player.

<!-- gh-comment-id:6453972051 --> @kacpherek commented on GitHub (Oct 27, 2026): Fixed by #2535: armadillos roll up when hit or scared by a sprinting player.
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#680
No description provided.