#include <iostream>
#include "minecraft.h"
using namespace std;
TxMinecraft mc;
int x,y,z,id,data;
void six(int x,int y,int z){
//地基 四个6*6正方形 空心
id=98,data=0;
y=y-1;
mc.drawLine(x,y,z,x+5,y,z,id,data);
mc.drawLine(x,y,z,x,y,z+5,id,data);
mc.drawLine(x,y,z+5,x+5,y,z+5,id,data);
mc.drawLine(x+5,y,z,x+5,y,z+5,id,data);
y=y+1;
}
void no1(){
//划4条连接线
id=98,data=0;
mc.fillBlocks(x+1,y,z+5,x+1,y+2,z+15,id,data);
mc.fillBlocks(x+5,y,z+1,x+15,y+2,z+1,id,data);
mc.fillBlocks(x+5,y,z+19,x+15,y+2,z+19,id,data);
mc.fillBlocks(x+19,y,z+5,x+19,y+2,z+15,id,data);
mc.drawLine(x+1,y+3,z+5,x+1,y+3,z+15,109,0);
mc.drawLine(x+5,y+3,z+1,x+15,y+3,z+1,109,2);
mc.drawLine(x+5,y+3,z+19,x+15,y+3,z+19,109,3);
mc.drawLine(x+19,y+3,z+5,x+19,y+3,z+15,109,1);
}
void no2(){
id=98,data=0;
mc.fillBlocks(x,y,z,x,y+3,z+6,id,data);
mc.fillBlocks(x,y,z+14,x,y+3,z+20,id,data);
mc.fillBlocks(x,y,z,x+6,y+3,z,id,data);
mc.fillBlocks(x+14,y,z,x+20,y+3,z,id,data);
mc.fillBlocks(x+20,y,z,x+20,y+3,z+6,id,data);
mc.fillBlocks(x+20,y,z+14,x+20,y+3,z+20,id,data);
mc.fillBlocks(x,y,z+20,x+6,y+3,z+20,id,data);
mc.fillBlocks(x+14,y,z+20,x+20,y+3,z+20,id,data);
id=109;
mc.drawLine(x,y+3,z,x,y+3,z+6,id,0);
mc.drawLine(x,y+3,z+14,x,y+3,z+20,id,0);
mc.drawLine(x,y+3,z,x+6,y+3,z,id,2);
mc.drawLine(x+14,y+3,z,x+20,y+3,z,id,2);
mc.drawLine(x+20,y+3,z,x+20,y+3,z+6,id,1);
mc.drawLine(x+20,y+3,z+14,x+20,y+3,z+20,id,1);
mc.drawLine(x,y+3,z+20,x+6,y+3,z+20,id,3);
mc.drawLine(x+14,y+3,z+20,x+20,y+3,z+20,id,3);
id=24;
mc.fillBlocks(x+1,y+4,z+1,x+1,y+6,z+5,id,data);
mc.fillBlocks(x+1,y+4,z+15,x+1,y+6,z+19,id,data);
mc.fillBlocks(x+1,y+4,z+1,x+5,y+6,z+1,id,data);
mc.fillBlocks(x+15,y+4,z+1,x+19,y+6,z+1,id,data);
mc.fillBlocks(x+19,y+4,z+1,x+19,y+6,z+5,id,data);
mc.fillBlocks(x+19,y+4,z+15,x+19,y+6,z+19,id,data);
mc.fillBlocks(x+1,y+4,z+19,x+5,y+6,z+19,id,data);
mc.fillBlocks(x+15,y+4,z+19,x+19,y+6,z+19,id,data);
id=155;
for(int i=4;i<7;i++){
mc.drawLine(x+2,y+i,z+2,x+18,y+i,z+2,id,0);
mc.drawLine(x+18,y+i,z+2,x+18,y+i,z+18,id,0);
mc.drawLine(x+2,y+i,z+2,x+2,y+i,z+18,id,0);
mc.drawLine(x+2,y+i,z+18,x+18,y+i,z+18,id,0);
}
}
void no3(){
id=155;
mc.drawLine(x+5,y,z+5,x-6,y,z+5,id,data);
mc.drawLine(x+5,y,z+5,x+5,y,z-6,id,data);
mc.drawLine(x+5,y,z-6,x-6,y,z-6,id,data);
}
int main(int argc, char** argv) {
bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","4c4ce4431bdc409388e0a110f5aa9dcc");
if(!con){
cout<<"连接失败"<<endl;
return 0;
}
cin>>x>>y>>z;
mc.fillBlocks(x,y,z,x+100,y+100,z+100,0,0);
six(x,y,z);
six(x+15,y,z);
six(x,y,z+15);
six(x+15,y,z+15);
no1();
no2();
no3();
return 0;
}