mojira.dev
MCPE-35202

Fireball is not correctly positioned when shot by ghast

  • You can see when the ghast shoot a fireball, it appears a little above the head instead of being in the mouth

Device: LG K10

Linked issues

Attachments

Comments 9

[Mojang] Mega_Spud (Jay)

Cleaning up old tickets: This ticket has not been updated recently (~7 months+) so is being closed as Cannot Reproduce. If you feel this is still a valid issue and is affecting the most recent versions, then please comment, or create a new ticket following the Issue Guidelines.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

silentwisperer

This issue is certainly still around, and can be pretty easily tested even in the recent 1.16.0.58 nether update beta. Since its the nether update, seems like a perfect time to fix up ghasts 😃

I think this bug also makes it so the ghast often misses where its firing, so that the player can stand perfectly still, and the ghast will never be able to shoot you.

Here is some footage of this bug in action: https://youtu.be/aKaxK2xAWJI?t=396

I will confirm this later today, but it should look much better in the betas than in 1.14.60 since MCPE-44326 was fixed. It just so happens that the fireball is offset even more than the ghast hitbox box used to be.

I don't know why people say that ghasts have inaccurate range.every time a ghast shoots at me,its always at me.so I don't know whether this is fixed or this just me because even in 1.14.60,ghasts were fine in this description

This is still an issue in 1.16.0.64, to reproduce just summon a ghast and have it fire at you, once it gets high enough the shots will start going over your head, they only hit if the ghast is roughly the same elevation as the target. 

1.16.0.64 is already in the Affects Version/s list.

Affects 1.16.200.55 Beta.

Affects 1.16.40 Hotfix.

The position of a fireball when shot by a ghast is determined by the "offset" parameter in the "minecraft:projectile" component in \entities\fireball.json. To make the fireball come from the ghast's mouth the offset should be

"offset": [ "2 * math.sin(query.body_y_rotation)" , -3.25, "2 * math.sin(query.body_y_rotation - 90)" ],

I have attached a behavior pack (

[media]

) that fixes the bug by adding a component group that contains a version of "minecraft:projectile" with the above offset, and a filter in the "entity_spawned" event that adds that group if the fireball is spawned by a ghast. This allows "ghast" fireballs shot by other entities to still use the default offset.

Affects 1.17.40.20

Lio

(Unassigned)

349985

Confirmed

Multiple

Android 6.0

fireball, ghast, position

1.19.80.24 Preview, 1.19.80.23 Preview, 1.19.80.22 Preview, 1.18.30.29 Preview, 1.18.30.28 Beta, ..., 1.18.2 Hotfix, 1.18.10, 1.18.30.21 Preview, 1.18.30.20 Beta, 1.18.12 Hotfix

1.20.0.20 Preview, 1.20.0

Retrieved