This isn't going to work, what if the mob is flying for some reason? (explosions, knock-back, holes, ...)