Fix metadata on 1.7 and head rotation on 1.6!

and fixed animation packet writing on 1.7