/** @return Euclidean distance between current position and home chest */ public double distanceToHome() { return Math.sqrt( Math.pow(this.posX - homePos.x, 2) + Math.pow(this.posY - homePos.y, 2) + Math.pow(this.posZ - homePos.z, 2)); }