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

Armor shields and elytra are dropped by dispenser if they cannot be equipped but skulls and pumpkins are not

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 18w21b, Minecraft 1.13.2, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      As stated in MC-45743 and MC-48239 it is intended that skulls and pumpkins are not dropped when they cannot be equipped for a mob in front or cannot be placed to spawn a mob (wither, snowman and iron golem). However, armor, shields and the elytra are dropped when they cannot be equipped.

      Expected behavior

      Armor, shields and the elytra are not dropped when there is no mob in front which can equip the item.

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The method net.minecraft.item.ItemArmor.DISPENSER_BEHAVIOR.new BehaviorDefaultDispenseItem() {...}.dispenseStack(IBlockSource, ItemStack) calls the method of the parent class which then drops the item.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                5 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: