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

Enchantments from items held in the main hand are applied to other items when entities are killed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Snapshot 13w26a
    • 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, 22w05a, 22w06a, 1.18.2 Release Candidate 1, 1.18.2, 22w14a, 1.19, 1.19.1 Pre-release 4, 1.19.1, 1.19.2, 22w43a, 1.19.3
    • None
    • Confirmed
    • Combat, Enchantments, Loot tables
    • Low

    Description

      The Bug:

      Enchantments from items held in the main hand are applied to other items when entities are killed.

      Steps to Reproduce:

      1. Summon a husk, hold a bow in your offhand, and a sword enchanted with a high level of looting in your main hand, by using the commands provided below.
        /summon minecraft:husk ~ ~ ~ {NoAI:1b}
        /item replace entity @s weapon.offhand with minecraft:bow
        /item replace entity @s weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"minecraft:looting",lvl:100}]}
      2. Shoot and kill the husk using the bow.
      3. Look if the looting enchantment on the sword affected the number of items that the husk dropped.
      4. Take note as to whether or not enchantments from items held in the main hand are applied to other items when entities are killed.

      Observed Behavior:

      Enchantments are applied to other items when entities are killed.

      Expected Behavior:

      Enchantments would not be applied to other items when entities are killed.

      Potential Fix:

      A potential fix by Chumbanotz can be found in this comment.

      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 [Helper] Avoma
              Votes:
              46 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: