mojira.dev
MC-271402

Sharpness and mob-specific damage enchantments reduce attack damage instead of increasing it

Basically.. Smite, Bane of Arthropods, Impaling, etc. don't work anymore. They deal 0 damage to mobs. 

Linked issues

MC-271419 Sharpness enchantment decreases attack damage instead of increasing attack damage. Resolved MC-271445 Damage Enchantments decrease damage instead of increasing it Resolved MC-271469 Weak attacks and all axe attacks not doing damage to undead mobs Resolved MC-271563 Smite decreases damage to skeletons and zombies Resolved MC-271564 Smite and sharpness not working Resolved

Attachments

Comments 10

Can confirm.

Serious bug.

Sharpness do not works either, not only these enchants.

Can confirm, here are my findings based on number of hits.

Smash attack from Mace at 10 Blocks high against a Zombie with a Full Set of Protection IV Netherite Armor:

  • Unenchanted: 8 Hits

  • Breach IV: 3 Hits

  • Density V: 3 Hits

  • Smite V: 10 Hits

Critical attack from Mace against a Zombie with a Full Set of Protection IV Netherite Armor:

  • Unenchanted: 31 Hits

  • Breach IV: 8 Hits

  • Density V: 31 Hits

  • Smite V: >110 Hits and it is still alive

For other circumstances against an unarmored zombie while performing a Critical Attack:

  • Fist: 15 Hits

  • Netherite Sword: 2 HIts

  • Smite V Netherite Sword: >15 Hits and it is still alive

Smite is as reported for me

But Sharpness is inconsistent: it seems the weak attacks do not work on undead mobs but work on mobs such as spiders, while the strong attacks work on both

Confirmed as well. With Sharpness 5 on a netherite sword, 3 hits on a cave spider to kill it. Sharpness can make your attacks weaker instead. Tested with No Sharpness on a netherite sword. 2 Hits. This bug needs to be a big priority. Stray test. 3 hits with no Sharpness. 4-5 Hits with Sharpness. This bug popped up 24w18a.

Made a post about one more broken enchantment. Bane of Arthropods is completely broken. It heals spiders instead of hurting them.

This needs to be fixed asap

this also happens with custom enchantments that are mob especific

Mark Andrew Hirschler

Noticed this problem while using my zombie spawner farm. Using a Sweeping Edge, Smite V sword the target mob will not die, but all mobs hit with the Sweeping Edge effect die.

[media]

It uses the post_attack component, otherwise it works exactly like the original, but it works as it should.

bakje

slicedlime

Confirmed

Platform

Very Important

Enchantments

24w18a

24w19a

Retrieved