When a dragon fireball lands, the resulting area effect cloud deals 6 harming damage, but when the ender dragon breathes near the portal, the resulting area effect cloud deals 3 harming damage. Expected is that they're the same, since they're both dragon's breath.
Linked issues
relates to 1
Comments 3
Code analysis (Mojang mappings, 1.19.4-pre4): The effects of the area effect clouds spawned by dragon fireballs and the area effect clouds spawned by the dragon sitting on the fountain are different. In DragonFireball#onHit(Entity)
, the effect added is:
$$2.addEffect(new MobEffectInstance(MobEffects.HARM, 1, 1));
while on DragonSittingFlamingPhase#doServerTick()
, the effect added is:
this.flame.addEffect(new MobEffectInstance(MobEffects.HARM));
which is equivalent to new MobEffectInstance(MobEffects.HARM, 0, 0)
. These two fields in question correspond respectively to the duration and amplifier of the effect. The important part here is the amplifier: 0 is equivalent to Instant Damage (3 hearts), while 1 is equivalent to Instant Damage II (6 hearts).
Probably relates to MC-87725