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

Enchantments get applied to other weapons on kill

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Minecraft 1.4.4, Minecraft 1.4.7, Minecraft 1.5, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.7.4, Minecraft 14w02c, Minecraft 14w03b, Minecraft 14w04a, Minecraft 14w04b, Minecraft 14w05a, Minecraft 14w05b, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.10, Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w32c, Minecraft 14w32d, Minecraft 14w33a, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 16w03a, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 17w06a, Minecraft 17w17b, Minecraft 1.12.2, Minecraft 1.13-pre1, Minecraft 1.14.4 Pre-Release 5, 1.14.4, 1.15.2, 20w16a, 20w21a, 1.16, 1.16.2, 1.16.3, 1.16.4, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w11a, 21w15a, 21w17a, 1.17, 1.17.1 Pre-release 1, 1.17.1 Pre-release 2, 1.17.1 Pre-release 3, 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w42a, 21w43a, 1.18 Release Candidate 3, 1.18, 1.18.1
    • Snapshot 13w26a
    • None
    • Confirmed
    • Combat, Enchantments, Loot tables
    • Low

    Description

      The Bug:

      Enchantments get applied to other weapons on kill.

      Steps to Reproduce:

      • Run the following commands.
      • /summon minecraft:husk ~ ~ ~ {NoAI:1b}
        /item replace entity @p weapon.offhand with minecraft:bow
        /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"minecraft:looting",lvl:100}]}
      • Shoot and kill the husk using your bow.
      • →  Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.

      Observed Behavior:

      Enchantments get applied to other weapons on kill.

      Expected Behavior:

      Enchantments would not get applied to other weapons on kill.

      Attachments

        1. MC-3304.mp4
          6.13 MB
        2. MC-3304.png
          MC-3304.png
          1.06 MB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Avoma Avoma
              Votes:
              41 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: