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

Creepers with a high ExplosionRadius cause weird and unnatural explosion damage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.5, 21w17a, 21w18a, 1.17, 1.17.1, 21w44a, 1.18.1, 1.18.2, 22w14a, 1.19.1, 1.19.2, 1.19.4, 1.20.4
    • None
    • Confirmed
    • Commands, Mob behaviour

      They seem to leave a cross underneath them undestroyed

      This might be the explanation for this bug. However, I'm not sure of it.

      Explosions work by a creating a 16x16x16 grid around the explosion source. A ray from the center point to each block of the 16x16x16 grid is created. A ray departs from the explosion source with a given value. That value is decreased every 0.3 blocks it travels trough. The rays stops when it's value has reached 0. Every block that could not stop the ray is destroyed. For more explanation, seeĀ https://minecraft.fandom.com/wiki/Explosion#Effect.

      However, there is a point where th two inner rays are diverted so far from the center that they don't enter the center blocks anymore. from this point, there is no ray any more that can destroy these blocks anymore, and they are untouched. A solution for this would be to make the amount of rays uneven, which makes that there is one ray going directly down

      To prevent the remaining strange explosiondamage, the amount of rays could be calculated based on the creeper's ExplosionRadius, with something that makes that there is an uneven amount of rays to prevent the crosses.

      On the first photo, I've spawned a lot of creepers on a line on a walkway. The explanation for the less destroyed part can be that a part of the walkway was blocking the explosion a bit more than the rest, but as I don't remember the walkway anymore, so I'm not sure of it.

      The screenshot with the blocks that shouldn't be destroyable still needs proper testing, it's just theoretical.

      For a reference to what blocks will be destroyed, best look to the explosiondamage picture. That is the real explosiondamage a creeper would do. (Note: It is a qaurt of the explosiondamage copied and rotated such that it forms a square, but that shouldn't matter as the explosiondamage is symmetrical)

      You can get a spawnegg for a creeper that immediatly explodes using the following command:

      /give @p creeper_spawn_egg{EntityTag:{id:"minecraft:creeper",ExplosionRadius:20,Fuse:0,ignited:1,powered:1}}
      

      Don't use this spawnegg anywhere near things you'd like to keep, it's very destructive!!!

        1. 2021-04-28_08.42.26.png
          2021-04-28_08.42.26.png
          944 kB
        2. 2021-04-28_08.42.39.png
          2021-04-28_08.42.39.png
          2.08 MB
        3. 2021-04-28_08.34.46.png
          2021-04-28_08.34.46.png
          2.49 MB
        4. blocks shouldn't be destroyable.png
          blocks shouldn't be destroyable.png
          150 kB
        5. 2021-05-03_13.18.58.png
          2021-05-03_13.18.58.png
          2.43 MB
        6. quart of the explosion damage rotated and copied four times.png
          quart of the explosion damage rotated and copied four times.png
          46 kB
        7. MC-224409.mp4
          5.76 MB
        8. 2022-08-15_20.05.22.png
          2022-08-15_20.05.22.png
          9.23 MB

            Unassigned Unassigned
            WoutZeester1 blablab
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: