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

Sharpness / Smite / Bane of Arthropods damage applies after the Weakness effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 15w47b, Minecraft 15w47c, Minecraft 15w49a, Minecraft 15w50a, Minecraft 15w51b, Minecraft 16w02a, Minecraft 16w04a, Minecraft 16w05a, Minecraft 16w05b, Minecraft 16w07a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.10.2, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.2, Minecraft 18w02a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, 1.15.1, 1.15.2 Pre-release 2, 1.15.2, 1.16, 20w46a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 2, 1.17 Pre-release 3, 1.17 Pre-release 4, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17, 1.17.1 Pre-release 1, 1.17.1 Pre-release 2, 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 4, 1.18 Pre-release 5, 1.18 Pre-release 6, 1.18 Pre-release 7, 1.18 Release Candidate 1, 1.18 Release Candidate 3, 1.18, 1.18.1 Pre-release 1, 1.18.1 Release Candidate 1, 1.18.1, 22w03a, 22w05a, 22w07a, 1.18.2 Pre-release 1, 1.18.2 Pre-release 3, 1.18.2, 22w11a, 22w12a, 22w13a, 22w14a, 22w15a, 22w16b, 22w17a, 22w18a, 22w19a, 1.19 Pre-release 1, 1.19 Pre-release 2, 1.19 Pre-release 4, 1.19 Pre-release 5, 1.19 Release Candidate 2, 1.19, 22w24a, 1.19.1 Pre-release 1, 1.19.1, 1.19.2, 22w42a, 22w43a, 1.19.3 Release Candidate 3, 1.19.3, 23w03a, 23w04a, 23w05a, 23w06a, 23w07a, 1.19.4 Pre-release 1, 1.19.4 Pre-release 2, 1.19.4, 23w12a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20.1, 23w31a, 23w32a, 23w33a, 23w35a, 1.20.2 Pre-release 1, 1.20.2, 23w40a, 23w41a, 23w42a, 23w43a, 23w44a, 24w11a, 1.20.6, 24w19b, 1.21 Pre-Release 4, 1.21, 1.21.1
    • Confirmed
    • (Unassigned)

      The bug

      Giving yourself weakness now negates only your weapon's base attack damage and not Sharpness/Smite/Bane of Arthropods damage.

      How to reproduce

      1. Run:
        /give @s splash_potion[minecraft:potion_contents={potion:"minecraft:long_weakness"}]
        /give @s diamond_hoe[minecraft:enchantments={"minecraft:sharpness":1}]
        /summon villager ~ ~ ~ {Health:1}

        → Observe how the diamond hoe's tooltip says 2 Attack Damage (or rather, imagine that it says that until MC-271840 is fixed) and the weakness potion's tooltip says -4 Attack Damage.

      2. Throw the potion at your feet and hit the villager with the diamond hoe.
        Villager died even though the potion was supposed to take away 4 (of your 2) attack damage

      Notes

      When attacking while falling, neither critical strike damage nor bonus damage from the mace are considered part of the base attack value (from which the weakness value is subtracted). However, if the attack manages to overcome the weakness value due to this bug, mace bonus damage will be applied while critical strike damage will not.

            Unassigned Unassigned
            clamlol [Helper] clam lol
            Votes:
            25 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              CHK: