Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-1516

Damage rollover from anvil damage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.4.2
    • Unconfirmed

      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.

            Unassigned Unassigned
            redstone_fanatic Alexander Ryan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: