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
Linked issues
is duplicated by 19
Attachments
Comments 13

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.

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

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.
[media]And a pic in case you don't want to bother with the spreadsheet:
[media]

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.

Affects 1.17.10. Opposite effect occurs with high levels of weakness (mobs deal damage).
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.

Affects 1.18.1

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.

Resolved at some point during or before 1.18.31.
Added test world.