mojira.dev
MC-304472

Inconsistencies with attack damage on spear charge attacks in 1.21.11 Pre-Release 2

Using a Netherite Spear as a point of compression we deal 7 damage when running directly at the target. Below are the various cases where the damage increases/decreases as expected.

Although a report for the similar bug reports exist for this matter, the details of the bug are slightly different as well as bein in a different version (1.21.11 Pre-Release 2 instead of 25w41a and 25w44a).

Each of the following have been tested individually.

Attribute Commands:

/attribute @s minecraft:attack_damage modifier add dmg 10 add_value
/attribute @s minecraft:attack_damage modifier add dmg 10 add_multiplied_base
/attribute @s minecraft:attack_damage modifier add dmg 10 add_multiplied_total
All of the following above deal 7 damage instead of increasing damage as expected.

/attribute @s minecraft:attack_damage base set 10
This deals 16 damage as expected.

Potion Effects:

/effect give @s minecraft:strength infinite 1 true
/effect give @s minecraft:weakness infinite 1 true
All of the following above deal 7 damage instead of increasing/decreasing damage as expected.

Sharpness Enchantment:

/give @s minecraft:netherite_spear[enchantments={sharpness:10}]
This deals 12.5 damage as expected.

Currently only enchantments and base attribute affect damage, but modifiers do not.

Linked issues

Comments 1

This is a duplicate of MC-302778. Just because that issue has been confirmed for 25w41a and 25w45a does not mean a new report should be created for the same issue in any other version. Sharpness works as expected because it does not actually modify the attribute itself, rather it modifies the damage dealt after the attribute has been evaluated.

John E. Tralalero

(Unassigned)

Unconfirmed

(Unassigned)

1.21.11 Pre-Release 2

Retrieved