how can you make a fake projectile "embed" in an entity?

I'm making a projectile made from an item display, and the idea is that when it hits something, it "embeds" into it. so if it hit a ghast in the forehead for example, it would remain in that spot when it turns before blowing up on command

Continue to help post