[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: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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 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 |
| Comment by IonicEcko [ 03/Mar/20 ] |
|
Comments from When I used [/effect @s strength 99999 73] |
| 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. |