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

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 20w07a
    • 20w09a
    • None
    • Confirmed
    • 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

              hkniberg [Mojang] Henrik Kniberg
              marcono1234 [Mod] Marcono1234
              Votes:
              10 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: