how do I execute at the center of a block?

I'm making a slime projectile that leaves puddles, but the method I have right now for telling which surface it's on is a bit buggy; are there any better ones?
Continue to help post