void loop(){
    box(50,50,50, 10,10,10, 20);
}

void box(int x,int y,int z,int rotateX, int rotateY, int rotateZ, int size){
    push();
        translate(x,y,z);
        rotateX(rotateX);
        rotateY(rotateY);
        rotateZ(rotateZ);
        box(size);
    pop();
}