mojira.dev
MC-188783

Piglin still uses player swinging animation despite now holding weapons similar to a Vindicator

The bug

Although the Piglin now holds weapons similar to a Vindicator, it still uses the player swinging animation which prevents smooth animation transitions.

Special thanks to @unknown in this comment for discovering the bug:

They raise their arms like vindicators but the attack animation is still [that] of a player, meaning their arms [would not] smoothly transition from one location to the other.

The bug relates to MC-186102 which is resolved as Works As Intended.

How to reproduce

  1. Use the following command to obtain a strong Resistance effect:

    /effect give @s resistance 300 127 true
  2. Use the following command to spawn a Piglin:

    /summon piglin ~ ~ ~ {HandItems:[{},{id:"minecraft:golden_sword",Count:1b}],IsImmuneToZombification:1b}
  3. Switch to Survival mode, and then have it attack the player.
    → ❌ The Piglin swings its arm similar to a player and then snaps back to hold its weapon similar to a Vindicator.

Linked issues

Comments 1

Duplicate of MC-187031 which should relate to MC-186102 instead.

user-a4a49

migrated

Community Consensus

Mob behaviour

animation, piglin, player, vindicator

1.16 Pre-release 4

Retrieved