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

"equipment_drops" enchantment effect component ignores its "enchanted" field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 24w20a
    • None
    • Unconfirmed
    • (Unassigned)

      The equipment_drops component always works on the attacker, even if the enchanted field is set to victim.

      Steps to reproduce

      1. Create an enchantment which sets equipment_drops value to 1 with enchanted field set to victim
      2. Test 1: Summon lots of mobs equipping items with the enchantment and kill the mobs with a normal weapon
      3. Test 2: Summon lots of mobs equipping normal equipment and kill the mobs with a weapon with the enchantment

      The enchantment file is attached. It supports #enchantable/vanishing items and works in any slots.

      Expected behavior
      All equipment drops in Test 1 since the enchantment should work on victims.

      Observed behavior
      All equipment drops in Test 2 when the enchantment is equipped by the attacker.

            Unassigned Unassigned
            d291623 Yui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: