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

Tool holding {CanPickUpLoot:1b} mobs only pick up swords

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 5, Minecraft 17w43b, Minecraft 1.13, Minecraft 1.13.1, 1.15.1, 1.15.2 Pre-release 2, 20w46a
    • Confirmed
    • (Unassigned)

      The bug

      As in the title.
      Even if they are holding a wooden shovel and you give a diamond shovel, they will never pick it up. However, they will can pick up a wooden sword.

      How to reproduce

      1. Use the following command
        /summon husk ~ ~ ~ {CanPickUpLoot:1b,HandItems:[{id:"iron_shovel",Count:1b},{}]}
        
      2. Set the mobGriefing gamerule to true if it is not already
        /gamerule mobGriefing true
        
      3. Throw a diamond shovel at the husk
        → It won't pick it up
      4. Throw a wooden sword at it
        → It picks it up despite the sword being weaker (4 attack damage) than the iron shovel (4.5 attack damage)

            Unassigned Unassigned
            SaziumR Roy Sajima
            Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: