[MCPE-20469] High levels of the Strength effect make you unable to damage mobs Created: 17/Mar/17  Updated: 18/May/22  Resolved: 18/May/22

Status: Resolved
Project: Minecraft (Bedrock codebase)
Component/s: None
Affects Version/s: 1.18.0.27 Beta, 1.17.10, 1.16.200.56 Beta, 1.16.100.60 Beta, 1.16.100.53 Beta, 1.16.0.63 Beta, 1.16.0.59 Beta, 1.16.0.57 Beta, 1.14.1 Hotfix, 1.12.0.2 Beta, 1.0.5.11, 1.0.5.13, 1.0.6.0, 1.0.5.54, 1.1.0.0, 1.1.0.1, 1.1.0.3, 1.1.0.4, 1.1.0.5, 1.1.0.8, 1.1.0.9, 1.10.0.4 Beta, 1.14.30 Hotfix, 1.16.1, 1.16.40 Hotfix, 1.16.100, 1.16.201 Hotfix, 1.17.2 Hotfix, 1.17.30, 1.17.40, 1.17.41 Hotfix, 1.18.1 Hotfix, 1.18.11 Hotfix
Fix Version/s: 1.18.30

Type: Bug
Reporter: MAXS
Resolution: Fixed Votes: 35
Labels: status-effect, strength

Attachments: File Strength Effects.mcworld     PNG File Strength Table.png     Microsoft Word Strength Table.xlsx    
Issue Links:
Duplicate
is duplicated by MCPE-22476 Invincible Mobs & Entities Resolved
is duplicated by MCPE-41762 When I give myself strength with the ... Resolved
is duplicated by MCPE-44867 Can't kill mobs in creative with stre... Resolved
is duplicated by MCPE-46022 Zombies and skeletons won't die Resolved
is duplicated by MCPE-64542 Unable to attack enemies when strengt... Resolved
is duplicated by MCPE-69803 The small size magma cubu can't kill ... Resolved
is duplicated by MCPE-70431 Can't hit a horse with a sharpness sw... Resolved
is duplicated by MCPE-72235 Magma cube Resolved
is duplicated by MCPE-75161 Sharpness and strength combination do... Resolved
is duplicated by MCPE-79409 I was messing around and seeing what ... Resolved
is duplicated by MCPE-92327 the strenght effect is broken in many... Resolved
is duplicated by MCPE-98349 Hits on mobs from Minecraft itself, a... Resolved
is duplicated by MCPE-105902 Can't kill Enderdragon in Minecarts/B... Resolved
is duplicated by MCPE-106634 Strength effect not calculating corre... Resolved
is duplicated by MCPE-116881 Any strength effect above 15 makes yo... Resolved
is duplicated by MCPE-133415 Horse with Diamond horse Armor are Un... Resolved
is duplicated by MCPE-142736 Command-given strength effect not let... Resolved
is duplicated by MCPE-146282 When you give yourself strength more ... Resolved
is duplicated by MCPE-152524 Sword with sharpness enchantment + hi... Resolved
is duplicated by REALMS-4166 Untouchable mobs in realms Resolved
Relates
relates to MCPE-42957 Strength Resolved
Confirmation Status: Confirmed
Platform: Multiple
CHK:
ADO: 64304 / 65921

 Description   

Steps to Reproduce

1.Using the command / effect @p strength — Lv 61 when we hit a mob they do not die. Also when a zombie is wearing a diamond boot and we use the same effect at the same level or up to 255 they do not die too



 Comments   
Comment by Douglas F Correa [ 28/Apr/22 ]

Resolved at some point during or before 1.18.31.

Comment by Benjamin Chin [ 16/Feb/22 ]

Affects 1.18.10. There are two possible results to this: 1. The mob appears to take damage, but does not take any damage. 2. You are unable to hit the mob at all (the mob does not even appear to be damaged). This seems to happen with lower and higher levels of Strength respectively.

Comment by Douglas F Correa [ 07/Dec/21 ]

Affects 1.18.1

Comment by [Mod] EVGENSYPERPRO [ 15/Nov/21 ]

This problem applies to all entities, including mobs. If you give, for example, a zombie 255 the strength effect and he attacks you, you will not receive damage.

Comment by Douglas F Correa [ 08/Aug/21 ]

Affects 1.17.10. Opposite effect occurs with high levels of weakness (mobs deal damage).

Comment by [Mod] GoldenHelmet [ 15/Oct/20 ]

@tryashtar: Yes, Bedrock uses integers for health and damage. For example, a creeper or armorless skeleton takes 10 punches to kill (2 dmg/punch), but an unarmored zombie takes 20 punches to kill due to the zombie's 2 natural armor points. Even though the zombie armor points should only reduce damage by 8% (= .16 for a punch), the actual damage value is truncated/rounded down to the nearest integer. In other words,

FLOOR( 2 - ( 2 * 2 *.04 ) ) = 1

However, according to MCPE-34981 Bedrock doesn't use the orginal strength formula of +( 130% * level ), even though that is still shown in the tooltip. What it actually uses is a recursive function,

Damage @ Str_Level = FLOOR( ( Damgage @ (Str_Level - 1) ) * 1.3 + 1)

The fact that it's recursive is why the damage values get insanely high very quickly.

Comment by Jesse Kohn [ 14/Oct/20 ]

When you have strength level 50 (51) applied, it stops dealing damage to mobs; the mob acts like if it got hurt, but doesn't receive any damage (I know this because it occurred with the wither that has a boss bar). So if your doing a sword fight with crazy strength effects, just make sure you use something under level 40-45.

Comment by [Mod] tryashtar [ 14/Oct/20 ]

Bedrock is still using the outdated strength formula. And presumably, is still using outdated integers for health/damage?

Comment by ambient [ 14/Oct/20 ]

personally I find this feature to be quite useful for disabling entities from dealing damage. Weakness 255 does not work if you are holding a high sharpness diamond sword, for example. I hope this doesnt get fixed, it doesnt negatively affect gameplay either. Strength 20 is plenty.

Comment by [Mod] GoldenHelmet [ 19/Apr/20 ]

Guys what are you doing with the insane strength levels? Strength 20 is enough to one-shot the Wither with your bare hands.

Justerfrog is probably right that there is an overflow happeneing, but it isn't at damage = 255. For strength level 61 it's at the damage = 32 million mark.

Here is a spreadsheet. Strength Table.xlsx
And a pic in case you don't want to bother with the spreadsheet:

Comment by IonicEcko [ 03/Mar/20 ]

Comments from MCPE-64542:

When I used [/effect @s strength 99999 73]
I got strength level 73 and could not attack any enemies
I could attack enemies when using [/effect @s strength 99999 72]
I tried strength level 80 , 90, 100 , 200 and 255 but also could not attack any enemies
But when I tried strength level 1-10,20,30,40,50,60,70-72 , i could attack enemies

Comment by Justerfrog [ 30/Mar/19 ]

it's an overflow. if the value is greater than 255 (which is the highest number possible with one byte of binary,) the game will treat it like a negative number.

Comment by [Mojang] Mega_Spud (Jay Wells) [ 21/Mar/17 ]

Added test world.

Generated at Sat Jan 11 15:27:12 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.