Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-172356

Piglin admiring held gold ingot drops it when killed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 20w07a
    • Fix Version/s: 20w09a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Entities, Mob behaviour

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hkniberg [Mojang] Henrik Kniberg
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                10 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK:

                  Potential Duplicates