mojira.dev
MC-172356

Piglin admiring held gold ingot drops it when killed

The bug

As shown here: Costless Bartering In Snapshot 20w07a

When bartering with a piglin it instantly throws the result but then continues to admire the gold ingot. However when it is killed while admiring the gold ingot, the ingot is dropped, therefore allowing bartering without actually paying anything.

How to reproduce

  1. Summon a piglin with low health

    /summon piglin ~ ~ ~ {Health:0.1f}
  2. Right click it with a gold ingot
    ❌ It throws an item at you

  3. Kill it while it is still admiring the gold ingot
    ❌ It drops the gold ingot

Linked issues

Comments 1

marcono1234

migrated

Confirmed

Entities, Mob behaviour

20w07a

20w09a

Retrieved