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
relates to 1
Attachments
Comments 20
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.
Okay new smite report made. MC-200937
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.
What makes you think they are undead?