mojira.dev
MC-313566

Frostbite-inflicted Freezing damage cannot zombify villagers

Frostbite-inflicted Freezing damage cannot zombify villagers, despite the frostbite being the source of the Freezing effect.

This may be intended, especially considering MC-174203 and MC-312421 are both valid issues, but it does appear strange when a villager dies instead of being zombified despite seemingly having been killed in melee. Personally I think it would be reasonable to consider melee-applied Freezing an extension of the melee attack while projectiles are not, but perhaps Mojang feels differently.

Fixing this would likely include adding an optional source_mob_type field for each active_effects entry on an entity. In most cases this field would not exist, but in the cases of frostbites, witches, bogged and some others, the field would be set to the namespaced ID of the source mob. (Although how this would/should behave when the effect is reapplied at the same level but a longer duration and from a different/no source, I’m not sure.)

To reproduce

  1. Ensure the difficulty is hard

  2. /summon minecraft:villager ~ ~ ~ {NoAI:1b,Health:15f,equipment:{head:{id:iron_helmet,components:{enchantments:{thorns:10}}}}}

  3. /execute at @n[type=villager] run summon minecraft:frostbite ~ ~ ~1 {Health:10f,equipment:{head:{id:iron_helmet}}}
    ✔ The frostbite attacks the villager 5 times before dying to the villager’s Thorns
    ❌ The villager dies to Freezing shortly afterwards without being zombified

Expected behavior

The Freezing damage, being connected to the melee attack, would zombify the villager

Note

This example uses Thorns mostly to get around MC-191642, in most survival situations the frostbite will still be alive when the villager dies to Freezing

Linked issues

Comments 2

This issue has been reviewed by our team.

Please add new, relevant information if it helps us understand or reproduce the issue. To show that you’re affected, use the vote feature rather than commenting.

If a fix is implemented, it will be listed in our official changelogs.

For major outages or urgent assistance, visit the Minecraft Help Center.

[Mod] clamlol

(Unassigned)

1733955

Confirmed

Expansion A

Normal

26.4 Pre-Release 1

Retrieved