[MC-1516] Damage rollover from anvil damage Created: 31/Oct/12  Updated: 07/Sep/15  Resolved: 19/Feb/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2
Fix Version/s: None

Type: Bug
Reporter: Alexander Ryan Assignee: Unassigned
Resolution: Invalid Votes: 1
Labels: mob

Confirmation Status: Unconfirmed

 Description   

So my friend was messing around with Resistance IV mobs today (he was curious if it was actually a 100% resist as opposed to 99.999999% resist. Resistance IV and up, for the record, makes mob, invincible, so to speak.) He tested it by using the new anvil like damage tags for a FallingSand spawner to do about 2 billion damage in one shot.

When he dropped it on the resistance IV mob, it stayed at 20 health and nothing special happened. Just for giggles, he dropped it on an unbuffed mob, no extra additions. It sort of broke the damage formula, and the mob ended up with 30,000 health somehow. So, 20 - about 2 billion = about 30,000 apparently. I'm assuming this caused an integer rollover. I'm also assuming this happens because Mojang didn't foresee anyone causing that much damage to a mob.



 Comments   
Comment by Tails [ 19/Feb/13 ]

No answer on querry, assuming not an issue anymore.

Comment by Tails [ 05/Feb/13 ]

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Alexander Ryan [ 02/Nov/12 ]

Requires a bunch of custom spawner messing-with. You'd need a third party tool and such.

Comment by Kumasasa [ 01/Nov/12 ]

How is the procdure to reproduce that ?

Generated at Sun Jan 12 11:54:42 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.