func (p Pos) Add(pos Pos) Pos {
	return Pos{p[0] + pos[0], p[1] + pos[1], p[2] + pos[2]}
}
Add adds two block positions together and returns a new one with the combined values.
package cube
import (
	"github.com/go-gl/mathgl/mgl64"
	"math"
)
const (
	MaxY = 255
	MinY = 0
)
type Pos [3]int
func (p Pos) X() int {
	return p[0]
}
func (p Pos) Y() int {
	return p[1]
}
func (p Pos) Z() int {
	return p[2]
}
func (p Pos) OutOfBounds() bool {
	y := p[1]
	return y > MaxY || y < MinY
}