mojira.dev

John E. Tralalero

Assigned

No issues.

Reported

Comments

Additional tests for game version 1.12.11 Pre-Release 2 where the bug is still present.

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.

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.
/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.
/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.
/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 in version 1.12.11 Pre-Release 2