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

Invulnerable ghasts can be killed with reflected fireballs


    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w06a
    • 23w51b
    • None
    • Community Consensus
    • Entities
    • Normal
    • Platform

      Ghasts with the {Invulnerable:1b} tag can still be killed if hit by a fireball reflected by the player. The expected behavior is that they don't take any damage at all.

      The code seems to specifically override reflected fireballs to always do damage to ghasts and not be affected by invulnerability.

      To reproduce

      • Spawn an invulnerable ghast in a two-block deep hole to prevent it from moving: summon minecraft:ghast ~ ~ ~ {Invulnerable:1b}
      • Switch to Survival mode, as players in Creative mode can damage invulnerable entities
      • Attempt to do melee damage to the ghast or shoot it with a bow. It should not take any damage.
      • Hit one of the ghast's fireballs back at it, which will kill it instantly.

            Fantastime [Mojang] Maxime Lebrot
            Sonicwave [Mod] Sonicwave
            2 Vote for this issue
            3 Start watching this issue