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

Creeper explosion radius overflows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.13.2, Minecraft 1.14 Pre-Release 2
    • None
    • Two superflat worlds, one consisting of 7 colors of terracotta in a rainbow pattern, the other a Tunneler's Dream preset
    • Unconfirmed

      The NBT tag ExplosionPower on Creepers is a byte, rather than an int. Therefore, it overflows at 128, resulting in explosions that don't destroy anything.

      This is inconsistent with Ghast fireballs, which store their ExplosionPower as an int.

      To observe this for yourself, use the following commands after spawning a Creeper (with doMobSpawning false):

        Creeper explosion:

      data merge entity @e[type=creeper,limit=1] {ignited:1b,Fuse:1s,ExplosionRadius:127}

        Fireball explosion:

      execute at @e[type=minecraft:creeper] run summon minecraft:fireball ~ ~ ~

      {Motion:[0.0,-1.0,0.0],direction:[0.0,-1.0,0.0],ExplosionPower:127}

      kill @e[type=minecraft:creeper]

      Replace the number after ExplosionPower with the desired value. To avoid lag, make sure doTileDrops and doFireTick are both false.

            Unassigned Unassigned
            JuniorJedi256 Math Nerd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: