mojira.dev
MC-200929

Ghast are harmed with potion of harming

The Bug
Despite being an undead mob, Ghast are harmed by potions of harming when they should be harmed with potion of healing.

Code analysis from @unknown found in this comment

Linked issues

Attachments

Comments 20

What makes you think they are undead?

They don't get attacked by the wither and the wither doesn't attack undead mobs. Though to be fair they don't get damaged with smite either.

Well, this just got a whole lot more confusing: MC-162557

I guess the question at hand is: Are Ghasts undead or not? Feel free to create a report about the fact Smite does not affect them.

Yeah that's what I based my report on. I'll make a report for smite.

10 more comments

Can confirm in 21w17a.

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 21w40a.

Can also confirm this behavior in 21w40a. Here are some extra details regarding this problem.

The Bug:

Ghasts are damaged by potions of harming despite being undead mobs.

Steps to Reproduce:

  • Summon a ghast and obtain a potion of harming.

/summon minecraft:ghast ~ ~ ~ {NoAI:1b}
  • Throw the potion of harming at the ghast and as you do this, take note as to whether or not it's damaged by the potion.

Observed Behavior:

Ghasts are damaged by potions of harming despite being undead mobs.

Expected Behavior:

Ghasts would not be damaged by potions of harming as they are undead mobs. Instead, they should be damaged with potions of healing, just like other undead mobs.

Code Analysis:

Code analysis can be found in this comment by @unknown.

anthony cicinelli

(Unassigned)

Community Consensus

(Unassigned)

ghast

1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, ..., 21w15a, 21w17a, 1.17, 1.17.1, 21w40a

Retrieved