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

Drown-immune mobs are hurt by /damage using drown damage type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.4 Pre-release 4, 1.19.4, 1.20.1, 1.20.2, 23w43b
    • None
    • Confirmed
    • Commands
    • Low
    • Platform

      The bug:

      Mobs immune to drowning will be killed by the drown damage of the /damage command; this is unlike mobs immune to fall damage which take no damage with the fall type inserted in /damage.

      Using the /damage with drowning type should not damage drown-immune mobs.

      Affected drown-immune mobs:

      • Husk
      • Zombie
      • Drowned
      • Zombie villager
      • Zombified piglin
      • Zoglin
      • Zombie horse
      • Skeleton
      • Stray
      • Wither skeleton
      • Skeleton horse
      • Phantom
      • Iron golem
      • Axolotl
      • Dolphin
      • Turtle
      • Frog
      • Cod
      • Salmon
      • Tropical fish
      • Pufferfish
      • Guardian
      • Elder guardian
      • Squid
      • Glow squid
      • Ender dragon

      Steps to reproduce:

      1. Summon any of the above-listed mobs.
      2. Use the /damage command:
        /damage @e[type=!player,sort=nearest,limit=1] 30 minecraft:drown at ~ ~ ~

      Result:

      The mob dies.

      Expected result:

      No damage is dealt, and the command returns "The entity is immune to this damage type"

            Unassigned Unassigned
            jirauser71590 user-f2760 (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: