func TweenLook(g *bot.Game, yaw, pitch float32, t time.Duration) {
	p := g.GetPlayer()
	start := time.Now()
	yaw0, pitch0 := p.Yaw, p.Pitch
	ofstY, ofstP := yaw-yaw0, pitch-pitch0
	var scale float32
	for scale < 1 {
		scale = float32(time.Since(start)) / float32(t)
		g.LookYawPitch(yaw0+ofstY*scale, pitch0+ofstP*scale)
		time.Sleep(time.Millisecond * 50)
	}
}
TweenLook do tween animation at player's head.
package util
import (
	"fmt"
	bot "github.com/Tnze/gomcbot"
	"math"
	"time"
)
func TweenLookAt(g *bot.Game, x, y, z float64, t time.Duration) {
	p := g.GetPlayer()
	x0, y0, z0 := p.GetPosition()
	x, y, z = x-x0, y-y0, z-z0
	r := math.Sqrt(x*x + y*y + z*z)
	yaw := -math.Atan2(x, z) / math.Pi * 180
	for yaw < 0 {
		yaw = 360 + yaw
	}
	pitch := -math.Asin(y/r) / math.Pi * 180
	TweenLook(g, float32(yaw), float32(pitch), t)
}