A grave is supposed to appear at the spot you died. If you die while dog paddling, the gravestone appears on the surface. If you die on the sandy bottom, it appears there. If you die while diving, it's just there, neither floating nor sinking. Make a /loc macro.