mojira.dev
MCPE-34981

Strength not functioning properly

Strength does not function properly. This can be proved by trying to kill a zombie pigman. They have 20HP, just like most mobs. However, if you drink a strength potion, with a sharpness 3 diamond sword, you should be able to deal 23 damage and kill the pigman in a single blow. However, this is not what happens. I've experimented with this on creative mode, and the pigman needs another hit to die. The only way possible to kill a pigman melee is to get a sharpness 4 diamond sword and then do a critical. Or you can get a power 5 bow and kill it that way. I've even tried with strength 2, which still wont kill the pigman with a 10 dmg sword. Please fix this.

Linked issues

Comments 23

Auldrick

Confirmed on Windows 10 version 1.4.2.0.

Experiments were done by striking a newly spawned zombie pigman once in Survival mode, hard difficulty. After each experiment an NBT editor was used to determine the pigman's remaining health and calculate the damage. The results were as follows:

Damage

Damage

Weapon

(Strength I)

(Strength II)

no weapon

2

3

Diamond sword

10

13

Diamond sword + Sharpness 3

13

16

These results are consistent with the following formula:

> Damage = Base * Effect + Ench
where

  • Base is the damage due to the weapon used (1 for empty hand, 7 for diamond sword)

  • Effect is the multiplier for the status effect (130% for Strength I, 260% for strength II), rounded up

  • Ench is the extra damage from enchantments (3 for Sharpness level 3)

The items in bold differ from the corresponding values given on the wiki. According to the wiki, a diamond sword deals 8 damage, the damage after applying the status effect is rounded down, and the Sharpness enchantment adds 1 for level 1 and 1/2 for every level above 1, which in this case would be 1 + 1/2 + 1/2 = 2. Of these, the damage dealt by a diamond sword is shown in the tooltip as +7, so either the wiki is incorrect or the "+" means it adds 7 to the 1 for empty hand damage, but the game isn't adding it. The other two different values might be the result of a bug.

Auldrick

Confirmed on Windows 10 version 1.4.2.0.

Experiments were done by striking a newly spawned zombie pigman once in Survival mode, hard difficulty. After each experiment an NBT editor was used to determine the pigman's remaining health and calculate the damage. The results were as follows:

Damage

Damage

Weapon

(Strength I)

(Strength II)

no weapon

2

3

Diamond sword

10

13

Diamond sword + Sharpness 3

13

16

These results are consistent with the following formula:

> Damage = Base * Effect + Ench
where

  • Base is the damage due to the weapon used (1 for empty hand, 7 for diamond sword)

  • Effect is the multiplier for the status effect (130% for Strength I, 260% for strength II), rounded up

  • Ench is the extra damage from enchantments (3 for Sharpness level 3)

The items in bold differ from the corresponding values given on the wiki. According to the wiki, a diamond sword deals 8 damage, the damage after applying the status effect is rounded down, and the Sharpness enchantment adds 1 for level 1 and 1/2 for every level above 1, which in this case would be 1 + 1/2 + 1/2 = 2. Of these, the damage dealt by a diamond sword is shown in the tooltip as +7, so either the wiki is incorrect or the "+" means it adds 7 to the 1 for empty hand damage, but the game isn't adding it. The other two different values might be the result of a bug.

Auldrick

@@unknown: In any case, I would not expect the pigman to die with Strength I and Sharpness 3 because the damage is less than 20. I'm not sure how you calculated 23 for the damage, but it probably involved a formula in which the Strength effect magnifies not only the base damage but the enchantment as well. I don't expect that status effects would magnify enchantments; because potions that can soup up 5 enchantments at no more cost than an unenchanted weapon or tool would be way too powerful. However, it does appear that there are some inconsistencies between the wiki and how the damage is actually calculated. We'll see what the developers say.

Auldrick

@@unknown: In any case, I would not expect the pigman to die with Strength I and Sharpness 3 because the damage is less than 20. I'm not sure how you calculated 23 for the damage, but it probably involved a formula in which the Strength effect magnifies not only the base damage but the enchantment as well. I don't expect that status effects would magnify enchantments; because potions that can soup up 5 enchantments at no more cost than an unenchanted weapon or tool would be way too powerful. However, it does appear that there are some inconsistencies between the wiki and how the damage is actually calculated. We'll see what the developers say.

migrated

In the old days of minecraft, strength was actually another multiplier added up onto the diamond sword. If I'm not clear, damage when you had strength one would be multiplied by 2.3, because you're ADDING 130% more damage, ON TOP of the damage already there. On Java 1.8, i used to play on a server when i would take sharpness 3 and a strength potion and run around killing pigman without any of them getting mad since I one shot them all. Unless something changed without me knowing, it's a bug. However, I will respect balance changes.

13 more comments
migrated

I found it !

I probably found the way how damage with strength potion II works. All what I need was just math.

 

So I was using Creeper with 20HP and netherite sword (default damage 8). With Sharpness III (1,25*3=3,75, so total dmg is 11) Creeper died after TWO hits. With Sharpness IV (1,25*4=5, so total dmg is 13) Creeper died after ONE hit.

 

Let's work with default equation for Strength potion I :

    dmg (13-1) * 1,3+1=16,6 => 16 hp and we need 20 

 

   20 = (13-1) * 1,3 +1           /  -1

   19 = (13-1) * 1,3                /  1/12

   (19/12)=1,58333 = 1 * 1,3

 

What you think, is number 1,58333 really close to 1,6, because if is then ...

   (x - 1) * 1,6 +1 = Total damage

   (13-1) * 1,6 + 1 = 20,2 => 20 hp

 

Remember guys Math and Logic always works, if you know how to used😀.

GoldenHelmet

@@unknown Did you read the comments I already made explaining this? It looks like you are trying to find a formula for Strength II that you could apply to the total damage of Weapon + Enchantment. That is incorrect. Strength and Sharpness do not compound each other. I provided a lot of data to prove this in
my first comment. Moreover, you are using an incorrect damage value for the netherite sword. The sword when used by a player does 9 damage, not 8. The tooltip shows "+8", and this means "bare hand damage + 8". The game uses 1 for bare hand damage for calculating damage using mele weapons and tools, even though bare hands actually do 2 damage (another bug, see MCPE-62692).

In your example, with a netherite sword and strength II,
Sharpness III: (1 + 8) + 7 + 3.75 = 19.75 damage, rounded down to 19, creeper lives
Sharpness IV: (1 + 8) + 7 + 5 = 21 damage, creeper dies

GoldenHelmet

@@unknown Did you read the comments I already made explaining this? It looks like you are trying to find a formula for Strength II that you could apply to the total damage of Weapon + Enchantment. That is incorrect. Strength and Sharpness do not compound each other. I provided a lot of data to prove this in
my first comment. Moreover, you are using an incorrect damage value for the netherite sword. The sword when used by a player does 9 damage, not 8. The tooltip shows "+8", and this means "bare hand damage + 8". The game uses 1 for bare hand damage for calculating damage using mele weapons and tools, even though bare hands actually do 2 damage (another bug, see MCPE-62692).

In your example, with a netherite sword and strength II,
Sharpness III: (1 + 8) + 7 + 3.75 = 19.75 damage, rounded down to 19, creeper lives
Sharpness IV: (1 + 8) + 7 + 5 = 21 damage, creeper dies

GoldenHelmet

The tooltips for Strength I and Strength II have been changed in 1.16.100 to show the actual damage increase for the weapon being held (selected in the hotbar). That being the case, there is no longer a reason to expect a sharpness III sword to one-hit a zombie as it would in Java pre-combat-update. The values for strength potions are, therefore, working as intended at the present time.

GoldenHelmet

The tooltips for Strength I and Strength II have been changed in 1.16.100 to show the actual damage increase for the weapon being held (selected in the hotbar). That being the case, there is no longer a reason to expect a sharpness III sword to one-hit a zombie as it would in Java pre-combat-update. The values for strength potions are, therefore, working as intended at the present time.

migrated

(Unassigned)

128306

Confirmed

Multiple

Windows 10

damage, health, potion, strength

1.14.20 Hotfix, 1.4.2.0, 1.12.1, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.40 Hotfix

Retrieved