#include <iostream> #include <string> #include "Windows.h" #include "minecraft.h" TxMinecraft mc; using namespace std; int main(int argc, char** argv) { bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","868d8493d5f04d0f869ba1e24c863cdd"); if(!con) { cout<<"连接失败"<<endl; return 0; } mc.setPlayerFly("guoliheng"); string id,data; string hui="7",hong="14",cheng="1",lan="3",huang="4",zong="12",he="15"; string no1[47][46]; no1[0][23]=he; no1[0][24]=hong; no1[0][25]=he; no1[0][26]=he; no1[1][22]=he; no1[1][23]=huang; no1[1][24]=cheng; no1[1][25]=hong; no1[1][26]=huang; no1[1][27]=he; no1[2][14]=he; no1[2][15]=he; no1[2][16]=he; no1[2][17]=he; no1[2][18]=he; no1[2][21]=he; no1[2][22]=huang; no1[2][23]=huang; no1[2][24]=hong; no1[2][25]=hong; no1[2][26]=huang; no1[2][27]=huang; no1[2][28]=he; no1[3][13]=he; for(int i=14;i<=18;i++){ no1[3][i]=hong; } no1[3][19]=he; no1[3][20]=he; no1[3][21]=he; for(int i=22;i<=26;i++){ no1[3][i]=zong; } no1[3][27]=huang; no1[3][28]=he; no1[4][12]=he; for(int i=13;i<=20;i++){ no1[4][i]=hong; } no1[4][21]=he; for(int i=22;i<=26;i++){ no1[4][i]=hong; } no1[4][27]=zong; no1[4][28]=he; for(int i=12;i<=31;i++){ no1[5][i]=he; } for(int i=18;i<=20;i++){ no1[5][i]=hong; } no1[5][22]=zong; for(int i=23;i<=27;i++){ no1[5][i]=hong; } no1[6][10]=he; no1[6][11]=he; for(int i=18;i<=34;i++){ no1[6][i]=he; } no1[6][23]=zong; no1[6][24]=huang; no1[6][25]=huang; no1[6][26]=zong; for(int i=28;i<=31;i++){ no1[6][i]=hong; } no1[7][8]=he; no1[7][9]=he; for(int i=23;i<=36;i++){ no1[7][i]=he; } for(int i=27;i<=34;i++){ no1[7][i]=hong; } no1[8][7]=he; for(int i=27;i<=38;i++){ no1[8][i]=he; } for(int i=30;i<=36;i++){ no1[8][i]=hong; } no1[9][6]=he; for(int i=11;i<=14;i++){ no1[9][i]=he; } for(int i=30;i<=40;i++){ no1[9][i]=he; } for(int i=33;i<=38;i++){ no1[9][i]=hong; } no1[10][5]=he; for(int i=9;i<=17;i++){ no1[10][i]=he; } no1[10][11]=hong; no1[10][12]=hong; no1[10][13]=huang; no1[10][14]=cheng; for(int i=33;i<=41;i++){ no1[10][i]=he; } for(int i=35;i<=40;i++){ no1[10][i]=he; } no1[11][4]=he; no1[11][8]=he; for(int i=9;i<=11;i++){ no1[11][i]=hong; } no1[11][12]=huang; for(int i=13;i<=17;i++){ no1[11][i]=cheng; } for(int i=18;i<=21;i++){ no1[11][i]=he; } for(int i=35;i<=42;i++){ no1[11][i]=he; } no1[12][3]=he; no1[12][7]=he; for(int i=8;i<=11;i++){ no1[12][i]=hong; } no1[12][12]=huang; for(int i=13;i<=21;i++){ no1[12][i]=cheng; } for(int i=22;i<=29;i++){ no1[12][i]=he; } for(int i=37;i<=42;i++){ no1[12][i]=he; } no1[12][40]=hong; no1[12][41]=hong; no1[13][3]=he; no1[13][6]=he; for(int i=7;i<=11;i++){ no1[13][i]=hong; } no1[13][12]=huang; for(int i=13;i<=29;i++){ no1[13][i]=cheng; } no1[13][30]=he; no1[13][31]=he; no1[13][38]=he; no1[13][39]=lan; no1[13][40]=he; no1[13][41]=he; no1[14][2]=he; no1[14][5]=he; for(int i=6;i<=11;i++){ no1[14][i]=hong; } no1[14][12]=huang; for(int i=13;i<=31;i++){ no1[14][i]=cheng; } no1[14][32]=he; no1[14][33]=he; no1[14][38]=he; no1[14][39]=lan; no1[14][40]=lan; no1[14][41]=he; no1[15][2]=he; no1[15][4]=he; for(int i=5;i<=12;i++){ no1[15][i]=hong; } no1[15][13]=huang; for(int i=14;i<=32;i++){ no1[15][i]=cheng; } no1[15][20]=huang; no1[15][21]=huang; no1[15][33]=hong; no1[15][34]=he; no1[15][39]=he; no1[15][40]=lan; no1[15][41]=lan; no1[15][42]=he; no1[16][1]=he; no1[16][4]=he; for(int i=5;i<=21;i++){ no1[16][i]=hong; } for(int i=14;i<=19;i++){ no1[16][i]=huang; } no1[16][22]=huang; for(int i=23;i<=32;i++){ no1[16][i]=cheng; } no1[16][33]=hong; no1[16][34]=hong; no1[16][35]=he; no1[16][39]=he; no1[16][40]=lan; no1[16][41]=lan; no1[16][42]=he; no1[17][1]=he; no1[17][3]=he; for(int i=4;i<=22;i++){ no1[17][i]=hong; } no1[17][23]=huang; for(int i=24;i<=31;i++){ no1[17][i]=cheng; } no1[17][32]=huang; no1[17][33]=hong; no1[17][34]=hong; no1[17][35]=he; no1[17][39]=he; no1[17][40]=lan; no1[17][41]=lan; no1[17][42]=lan; no1[17][43]=he; no1[18][0]=he; no1[18][3]=he; for(int i=4;i<=23;i++){ no1[18][i]=hong; } for(int i=24;i<=31;i++){ no1[18][i]=huang; } for(int i=26;i<=29;i++){ no1[18][i]=cheng; } for(int i=32;i<=35;i++){ no1[18][i]=hong; } no1[18][36]=he; no1[18][40]=he; no1[18][41]=lan; no1[18][42]=lan; no1[18][43]=he; no1[19][0]=he; no1[19][3]=he; for(int i=4;i<=35;i++){ no1[19][i]=hong; } for(int i=26;i<=29;i++){ no1[19][i]=hong; } no1[19][36]=he; no1[19][40]=he; no1[19][41]=lan; no1[19][42]=lan; no1[19][43]=lan; no1[19][44]=he; no1[20][0]=he; no1[20][3]=he; for(int i=4;i<=35;i++){ no1[20][i]=hong; } no1[20][36]=he; no1[20][40]=he; no1[20][41]=lan; no1[20][42]=lan; no1[20][43]=lan; no1[20][44]=he; no1[21][0]=he; no1[21][3]=he; for(int i=4;i<=35;i++){ no1[21][i]=hong; } no1[21][36]=he; no1[21][40]=he; no1[21][41]=lan; no1[21][42]=lan; no1[21][43]=lan; no1[21][44]=he; no1[22][0]=he; no1[22][4]=he; for(int i=5;i<=35;i++){ no1[22][i]=hong; } no1[22][14]=he; no1[22][15]=he; no1[22][16]=he; no1[22][17]=he; no1[22][36]=he; no1[22][40]=he; no1[22][41]=lan; no1[22][42]=lan; no1[22][43]=lan; no1[22][44]=he; no1[23][0]=he; no1[23][4]=he; for(int i=5;i<=35;i++){ no1[23][i]=hong; } no1[23][13]=he; no1[23][16]=he; no1[23][18]=he; no1[23][36]=he; no1[23][40]=he; no1[23][41]=lan; no1[23][42]=lan; no1[23][43]=lan; no1[23][44]=he; no1[24][0]=he; no1[24][1]=zong; no1[24][2]=zong; for(int i=5;i<=12;i++){ no1[24][i]=he; } for(int i=20;i<=35;i++){ no1[24][i]=hong; } no1[24][16]=he; no1[24][19]=he; no1[24][36]=he; no1[24][40]=he; no1[24][41]=lan; no1[24][42]=lan; no1[24][43]=lan; no1[24][44]=he; no1[25][0]=he; for(int i=4;i<=7;i++){ no1[25][i]=zong; } for(int i=20;i<=34;i++){ no1[25][i]=hong; } no1[25][16]=he; no1[25][20]=he; no1[25][35]=he; no1[25][40]=he; no1[25][41]=lan; no1[25][42]=lan; no1[25][43]=lan; no1[25][44]=he; no1[26][0]=he; for(int i=8;i<=11;i++){ no1[26][i]=zong; } for(int i=20;i<=34;i++){ no1[26][i]=hong; } no1[26][16]=he; no1[26][20]=he; no1[26][35]=he; no1[26][39]=he; no1[26][40]=lan; no1[26][41]=lan; no1[26][42]=lan; no1[26][43]=lan; no1[26][44]=he; no1[27][0]=he; no1[27][1]=he; for(int i=6;i<=8;i++){ no1[27][i]=lan; } for(int i=25;i<=27;i++){ no1[27][i]=he; } for(int i=22;i<=33;i++){ no1[27][i]=hong; } no1[27][15]=he; no1[27][21]=he; no1[27][34]=he; no1[27][39]=he; no1[27][40]=lan; no1[27][41]=lan; no1[27][42]=lan; no1[27][43]=lan; no1[27][44]=he; no1[28][0]=he; no1[28][1]=lan; for(int i=2;i<=11;i++){ no1[28][i]=zong; } no1[28][15]=he; no1[28][22]=he; no1[28][23]=hong; no1[28][24]=he; for(int i=25;i<=27;i++){ no1[28][i]=lan; } no1[28][28]=he; for(int i=29;i<=33;i++){ no1[28][i]=hong; } no1[28][34]=he; no1[28][38]=he; no1[28][39]=lan; no1[28][40]=lan; no1[28][41]=lan; no1[28][42]=lan; no1[28][43]=lan; no1[28][44]=he; no1[29][0]=he; no1[29][1]=lan; no1[29][2]=he; no1[29][6]=lan; no1[29][9]=lan; for(int i=13;i<=16;i++){ no1[29][i]=he; } no1[29][23]=he; for(int i=24;i<=28;i++){ no1[29][i]=lan; } no1[29][29]=he; for(int i=30;i<=32;i++){ no1[29][i]=hong; } no1[29][33]=he; no1[29][38]=he; no1[29][39]=lan; no1[29][40]=lan; no1[29][41]=lan; no1[29][42]=lan; no1[29][43]=lan; no1[29][44]=he; no1[30][0]=he; for(int i=0 ; i<47; i++) { for(int j=0;j<47;j++){ mc.setBlock(j+16,i+145,-430,251,0); } } for(int i=0 ; i<47; i++) { for(int j=0;j<47;j++){ if(no1[i][j]==""){ continue; }else{ data=no1[i][j].substr(0,no1[i][j].find(",")); Sleep(10); mc.setBlock(j+16,i+145,-430,251,stoi(data)); } } } return 0; }
} }for(int i=0 ; i<47; i++) { for(int j=0;j<47;j++){ if(no1[i][j]==""){ continue; }else{ data=no1[i][j].substr(0,no1[i][j].find(",")); Sleep(10); mc.setBlock(j+16,i+145,-430,251,stoi(data));}
} }
return 0;}