mojira.dev
MC-259938

Husks and zombies will be killed by the drown damage of the /damage command, and will not be transformed

The bug

Husks and zombies will be killed by the drown damage of the /damage command, and will not be transformed.

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

Affected drowning-immune mobs:

  1. Husk

  2. Zombie

  3. Drowned

  4. Zombie villager

  5. Zombified piglin

  6. Zoglin

  7. Zombie horse

  8. Skeleton

  9. Stray

  10. Wither skeleton

  11. Skeleton horse

  12. Phantom

  13. Iron golem

  14. Axolotl

  15. Dolphin

  16. Turtle

  17. Frog

  18. Cod

  19. Salmon

  20. Tropical fish

  21. Pufferfish

  22. Guardian

  23. Elder guardian

  24. Squid

  25. Glow squid

  26. Ender dragon

Reproduce steps

  1. Summon a zombie or husk.

  2. Use the /damage command:

    Zombie

    /damage @e[type=zombie,limit=1] 30 minecraft:drown at 88 65 1

    Husk

    /damage @e[type=husk,limit=1] 30 minecraft:drown at 88 65 1
  3. It was found that they did not transform.

Expected to happen...

  • Husk drowning should be transformed into a zombie.

  • Zombie drowning should be transformed into a drowned.

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

Linked issues

Attachments

Comments 2

Transforming is not related to drowning damage, it is related to time spent in water.

The issue here is that drowning-immune mobs can be damaged using /damage with drowning type.

Seeing the fix for fall-damage immune being harmed with /damage's fall type, shouldn't this (and related reports) also be fixed? (not the transforming, but the harming)

Relates to MC-259917.

[Mod]Les3awe

(Unassigned)

Confirmed

Platform

Low

Commands, Game Events, Mob behaviour

23w06a, 23w07a

Retrieved