#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",lan="3",lv="13",huang="4",zong="12",he="15"; string no1[47][37]; int y=0; no1[y][11]=hui; no1[y][12]=hui; no1[y][13]=hui; no1[y][14]=hui; no1[y][15]=hui; no1[y][16]=hui; no1[y][17]=hui; no1[y][18]=hui; no1[y][19]=hui; no1[y][20]=hui; no1[y][21]=hui; no1[y][22]=hui; no1[y][23]=hui; no1[y][24]=hui; y++;//1 no1[y][10]=hui; no1[y][12]=hui; no1[y][17]=hui; no1[y][19]=hui; no1[y][24]=hui; y++;//2 no1[y][2]=hui; no1[y][3]=hui; no1[y][4]=hui; no1[y][5]=hui; no1[y][6]=hui; no1[y][7]=hui; no1[y][8]=hui; no1[y][9]=hui; no1[y][10]=hui; no1[y][11]=hui; no1[y][17]=hui; no1[y][23]=hui; y++;//3 no1[y][1]=hui; no1[y][2]=zong; no1[y][3]=zong; no1[y][4]=huang; no1[y][5]=zong; no1[y][6]=hui; no1[y][7]=he; no1[y][8]=he; no1[y][9]=hui; no1[y][10]=lv; no1[y][11]=hui; no1[y][12]=hui; no1[y][13]=hui; no1[y][14]=hui; no1[y][15]=hui; no1[y][16]=hui; no1[y][17]=hui; no1[y][18]=hui; no1[y][19]=hui; no1[y][20]=hui; no1[y][21]=hui; no1[y][22]=hui; y++;//4 no1[y][0]=hui; no1[y][1]=lv; no1[y][2]=zong; no1[y][3]=zong; no1[y][4]=huang; no1[y][5]=huang; no1[y][6]=hui; no1[y][7]=he; no1[y][8]=he; no1[y][9]=hui; no1[y][10]=lv; no1[y][11]=huang; no1[y][12]=huang; no1[y][13]=huang; no1[y][14]=huang; no1[y][15]=huang; no1[y][16]=zong; no1[y][17]=zong; no1[y][18]=zong; no1[y][19]=lv; no1[y][20]=lv; no1[y][21]=huang; no1[y][22]=hui; no1[y][23]=hui; no1[y][24]=hui; no1[y][25]=hui; no1[y][26]=hui; no1[y][27]=hui; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=hui; no1[y][31]=hui; no1[y][32]=hui; no1[y][33]=hui; no1[y][34]=hui; y++;//5 no1[y][0]=hui; no1[y][1]=lv; no1[y][2]=lv; no1[y][3]=lv; no1[y][4]=lv; no1[y][5]=lv; no1[y][6]=lv; no1[y][7]=hui; no1[y][8]=hui; no1[y][9]=zong; no1[y][10]=zong; no1[y][11]=huang; no1[y][12]=zong; no1[y][13]=zong; no1[y][14]=zong; no1[y][15]=huang; no1[y][16]=zong; no1[y][17]=zong; no1[y][18]=lv; no1[y][19]=lv; no1[y][20]=lv; no1[y][21]=huang; no1[y][22]=huang; no1[y][23]=huang; no1[y][24]=huang; no1[y][25]=zong; no1[y][26]=zong; no1[y][27]=hui; no1[y][28]=he; no1[y][29]=he; no1[y][30]=hui; no1[y][31]=huang; no1[y][32]=huang; no1[y][33]=lv; no1[y][34]=lv; no1[y][35]=hui; y++;//6 no1[y][0]=hui; no1[y][1]=huang; no1[y][2]=huang; no1[y][3]=huang; no1[y][4]=lv; no1[y][5]=huang; no1[y][6]=huang; no1[y][7]=hui; no1[y][8]=hui; no1[y][9]=lv; no1[y][10]=lv; no1[y][11]=huang; no1[y][12]=huang; no1[y][13]=lv; no1[y][14]=zong; no1[y][15]=huang; no1[y][16]=huang; no1[y][17]=huang; no1[y][18]=hui; no1[y][19]=hui; no1[y][20]=lv; no1[y][21]=huang; no1[y][22]=huang; no1[y][23]=huang; no1[y][24]=huang; no1[y][25]=zong; no1[y][26]=zong; no1[y][27]=hui; no1[y][28]=he; no1[y][29]=he; no1[y][30]=hui; no1[y][31]=huang; no1[y][32]=zong; no1[y][33]=zong; no1[y][34]=zong; no1[y][35]=lv; no1[y][36]=hui; y++;//7 no1[y][0]=hui; no1[y][1]=zong; no1[y][2]=huang; no1[y][3]=huang; no1[y][4]=zong; no1[y][5]=zong; no1[y][6]=huang; no1[y][7]=hui; no1[y][8]=hui; no1[y][9]=lv; no1[y][10]=zong; no1[y][11]=lv; no1[y][12]=huang; no1[y][13]=lv; no1[y][14]=lv; no1[y][15]=huang; no1[y][16]=hui; no1[y][17]=hui; no1[y][20]=hui; no1[y][21]=hui; no1[y][22]=huang; no1[y][23]=huang; no1[y][24]=huang; no1[y][25]=lv; no1[y][26]=huang; no1[y][27]=huang; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=huang; no1[y][31]=huang; no1[y][32]=zong; no1[y][33]=zong; no1[y][34]=zong; no1[y][35]=lv; no1[y][36]=hui; y++;//8 no1[y][0]=hui; no1[y][1]=zong; no1[y][2]=huang; no1[y][3]=huang; no1[y][4]=zong; no1[y][5]=zong; no1[y][6]=huang; no1[y][7]=hui; no1[y][8]=hui; no1[y][9]=zong; no1[y][10]=zong; no1[y][11]=huang; no1[y][12]=zong; no1[y][13]=zong; no1[y][14]=lv; no1[y][15]=hui; no1[y][17]=hui; no1[y][20]=hui; no1[y][22]=hui; no1[y][23]=lv; no1[y][24]=lv; no1[y][25]=lv; no1[y][26]=lv; no1[y][27]=huang; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=huang; no1[y][31]=huang; no1[y][32]=huang; no1[y][33]=huang; no1[y][34]=huang; no1[y][35]=lv; no1[y][36]=hui; y++;//9 no1[y][0]=hui; no1[y][1]=zong; no1[y][2]=zong; no1[y][3]=lv; no1[y][4]=huang; no1[y][5]=lv; no1[y][6]=lv; no1[y][7]=hui; no1[y][8]=hui; no1[y][9]=zong; no1[y][10]=huang; no1[y][11]=huang; no1[y][12]=huang; no1[y][13]=zong; no1[y][14]=zong; no1[y][15]=hui; no1[y][22]=hui; no1[y][23]=zong; no1[y][24]=huang; no1[y][25]=lv; no1[y][26]=huang; no1[y][27]=zong; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=huang; no1[y][31]=huang; no1[y][32]=lv; no1[y][33]=huang; no1[y][34]=huang; no1[y][35]=huang; no1[y][36]=hui; y++;//10 no1[y][0]=hui; no1[y][1]=lv; no1[y][2]=lv; no1[y][3]=zong; no1[y][4]=lv; no1[y][5]=lv; no1[y][6]=hui; no1[y][7]=he; no1[y][8]=he; no1[y][9]=hui; no1[y][10]=zong; no1[y][11]=zong; no1[y][12]=lv; no1[y][13]=zong; no1[y][14]=huang; no1[y][15]=huang; no1[y][16]=hui; no1[y][21]=hui; no1[y][22]=zong; no1[y][23]=zong; no1[y][24]=huang; no1[y][25]=huang; no1[y][26]=huang; no1[y][27]=huang; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=lv; no1[y][31]=lv; no1[y][32]=lv; no1[y][33]=huang; no1[y][34]=huang; no1[y][35]=huang; no1[y][36]=hui; y++;//11 no1[y][1]=hui; no1[y][2]=zong; no1[y][3]=zong; no1[y][4]=huang; no1[y][5]=huang; no1[y][6]=hui; no1[y][7]=he; no1[y][8]=he; no1[y][9]=hui; no1[y][10]=zong; no1[y][11]=zong; no1[y][12]=lv; no1[y][13]=lv; no1[y][14]=lv; no1[y][15]=huang; no1[y][16]=huang; no1[y][17]=hui; no1[y][20]=hui; no1[y][21]=zong; no1[y][22]=zong; no1[y][23]=zong; no1[y][24]=zong; no1[y][25]=huang; no1[y][26]=huang; no1[y][27]=huang; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=huang; no1[y][31]=lv; no1[y][32]=lv; no1[y][33]=huang; no1[y][34]=lv; no1[y][35]=huang; no1[y][36]=hui; y++;//12 no1[y][2]=hui; no1[y][3]=hui; no1[y][4]=hui; no1[y][5]=hui; no1[y][6]=hui; no1[y][7]=hui; no1[y][8]=hui; no1[y][9]=hui; no1[y][10]=hui; no1[y][11]=hui; no1[y][12]=hui; no1[y][13]=hui; no1[y][14]=hui; no1[y][15]=hui; no1[y][16]=hui; no1[y][17]=hui; no1[y][18]=hui; no1[y][20]=hui; no1[y][21]=zong; no1[y][22]=zong; no1[y][23]=zong; no1[y][24]=zong; no1[y][25]=lv; no1[y][26]=lv; no1[y][27]=hui; no1[y][28]=he; no1[y][29]=he; no1[y][30]=hui; no1[y][31]=zong; no1[y][32]=huang; no1[y][33]=zong; no1[y][34]=lv; no1[y][35]=lv; no1[y][36]=hui; y++;//13 no1[y][11]=hui; no1[y][14]=hui; no1[y][18]=hui; no1[y][20]=hui; no1[y][21]=hui; no1[y][22]=hui; no1[y][23]=zong; no1[y][24]=zong; no1[y][25]=lv; no1[y][26]=lv; no1[y][27]=hui; no1[y][28]=he; no1[y][29]=he; no1[y][30]=hui; no1[y][31]=huang; no1[y][32]=huang; no1[y][33]=hunag; no1[y][34]=zong; no1[y][35]=hui; y++;//14 no1[y][12]=hui; no1[y][13]=hui; no1[y][14]=hui; no1[y][18]=hui; no1[y][20]=hui; no1[y][23]=hui; no1[y][24]=hui; no1[y][25]=hui; no1[y][26]=hui; no1[y][27]=hui; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=hui; no1[y][31]=hui; no1[y][32]=hui; no1[y][33]=hui; no1[y][34]=hui; y++;//15 no1[y][14]=hui; no1[y][22]=hui; no1[y][23]=hui; y++;//16 no1[y][15]=hui; no1[y][22]=hui; y++;//17 no1[y][16]=hui; no1[y][21]=hui; y++;//18 no1[y][17]=hui; no1[y][18]=hui; no1[y][19]=hui; no1[y][20]=hui; no1[y][21]=hui; y++;//19 no1[y][17]=hui; no1[y][21]=hui; y++;//20 no1[y][17]=hui; no1[y][21]=hui; y++;//21 no1[y][13]=hui; no1[y][14]=hui; no1[y][15]=hui; no1[y][16]=hui; no1[y][22]=hui; no1[y][26]=hui; no1[y][27]=hui; no1[y][28]=hui; no1[y][29]=hui; y++;//22 no1[y][7]=hui; no1[y][8]=hui; no1[y][9]=hui; no1[y][10]=hui; no1[y][11]=hui; no1[y][12]=hui; no1[y][23]=hui; no1[y][24]=hui; no1[y][25]=hui; no1[y][30]=hui; y++;//23 no1[y][5]=hui; no1[y][6]=hui; no1[y][24]=hui; no1[y][27]=hui; no1[y][28]=hui; no1[y][29]=hui; no1[y][31]=hui; y++;//24 no1[y][4]=hui; no1[y][26]=hui; no1[y][27]=hui; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=hui; no1[y][32]=hui; y++;//25 no1[y][3]=hui; no1[y][25]=hui; no1[y][26]=hui; no1[y][27]=hui; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=hui; no1[y][32]=hui; y++;//26 no1[y][3]=hui; no1[y][25]=hui; no1[y][26]=hui; no1[y][27]=hui; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=hui; no1[y][32]=hui; y++;//27 no1[y][2]=hui; no1[y][27]=hui; no1[y][29]=hui; no1[y][30]=hui; no1[y][32]=hui; y++;//28 no1[y][0]=hui; no1[y][1]=hui; no1[y][2]=hui; no1[y][25]=hui; no1[y][27]=hui; no1[y][29]=hui; no1[y][31]=hui; y++;//29 no1[y][0]=hui; no1[y][1]=hui; no1[y][2]=hui; no1[y][25]=hui; no1[y][26]=hui; no1[y][28]=hui; no1[y][31]=hui; y++;//30 no1[y][2]=hui; no1[y][26]=hui; no1[y][27]=hui; no1[y][28]=hui; no1[y][30]=hui; y++;//31 no1[y][3]=hui; no1[y][26]=hui; no1[y][27]=hui; no1[y][29]=hui; no1[y][30]=hui; no1[y][31]=hui; no1[y][32]=hui; no1[y][33]=hui; no1[y][34]=hui; no1[y][35]=hui; y++;//32 no1[y][3]=hui; no1[y][13]=hui; no1[y][28]=hui; no1[y][29]=hong; no1[y][30]=hong; no1[y][31]=hong; no1[y][32]=hong; no1[y][33]=hong; no1[y][34]=hong; no1[y][35]=hong; no1[y][36]=hui; y++;//33 no1[y][4]=hui; no1[y][13]=hui; no1[y][26]=hui; no1[y][27]=hui; no1[y][28]=hong; no1[y][29]=hong; no1[y][30]=hong; no1[y][31]=hong; no1[y][32]=hong; no1[y][33]=hong; no1[y][34]=hong; no1[y][35]=hong; no1[y][36]=hui; y++;//34 no1[y][5]=hui; no1[y][24]=hui; no1[y][25]=hui; no1[y][26]=hong; no1[y][27]=hong; no1[y][28]=hong; no1[y][29]=hong; no1[y][30]=hong; no1[y][31]=hong; no1[y][32]=hui; no1[y][33]=hui; no1[y][34]=hui; no1[y][35]=hui; y++;//35 no1[y][7]=hui; no1[y][8]=hui; no1[y][9]=hui; no1[y][19]=hui; no1[y][20]=hui; no1[y][21]=hui; no1[y][22]=hui; no1[y][23]=hui; no1[y][24]=hui; no1[y][25]=hui; no1[y][26]=hui; no1[y][27]=hui; no1[y][28]=hui; no1[y][29]=hui; no1[y][30]=hui; no1[y][31]=hui; y++;//36 no1[y][10]=hui; no1[y][11]=hui; no1[y][12]=hui; no1[y][15]=hui; no1[y][16]=hui; no1[y][17]=hui; no1[y][18]=hui; no1[y][19]=lan; no1[y][20]=lan; no1[y][21]=lan; no1[y][22]=lan; no1[y][23]=lan; no1[y][25]=lan; no1[y][26]=lan; no1[y][27]=lan; no1[y][28]=hui; y++;//37 no1[y][13]=hui; no1[y][14]=hui; no1[y][15]=lan; no1[y][16]=lan; no1[y][17]=lan; no1[y][18]=lan; no1[y][19]=lan; no1[y][20]=lan; no1[y][22]=lan; no1[y][23]=lan; no1[y][25]=lan; no1[y][26]=lan; no1[y][27]=lan; no1[y][28]=hui; y++;//38 no1[y][12]=hui; no1[y][13]=lan; no1[y][14]=lan; no1[y][15]=lan; no1[y][16]=lan; no1[y][17]=lan; no1[y][18]=lan; no1[y][19]=lan; no1[y][21]=lan; no1[y][23]=lan; no1[y][24]=lan; no1[y][25]=lan; no1[y][26]=lan; no1[y][27]=lan; no1[y][28]=hui; y++;//39 no1[y][12]=hui; no1[y][13]=lan; no1[y][14]=lan; no1[y][15]=lan; no1[y][16]=lan; no1[y][17]=lan; no1[y][18]=lan; no1[y][20]=lan; no1[y][21]=lan; no1[y][22]=lan; no1[y][25]=lan; no1[y][26]=lan; no1[y][27]=lan; no1[y][28]=hui; y++;//40 no1[y][12]=hui; no1[y][13]=lan; no1[y][14]=lan; no1[y][15]=lan; no1[y][16]=lan; no1[y][17]=lan; no1[y][19]=lan; no1[y][20]=lan; no1[y][21]=lan; no1[y][22]=lan; no1[y][23]=lan; no1[y][24]=lan; no1[y][27]=hui; y++;//41 no1[y][12]=hui; no1[y][13]=lan; no1[y][14]=lan; no1[y][15]=lan; no1[y][16]=lan; no1[y][18]=lan; no1[y][19]=lan; no1[y][20]=lan; no1[y][21]=lan; no1[y][22]=lan; no1[y][23]=lan; no1[y][24]=lan; no1[y][25]=lan; no1[y][26]=lan; no1[y][27]=hui; y++;//42 no1[y][13]=hui; no1[y][14]=lan; no1[y][16]=lan; no1[y][17]=lan; no1[y][18]=lan; no1[y][19]=lan; no1[y][20]=lan; no1[y][21]=lan; no1[y][22]=lan; no1[y][23]=lan; no1[y][24]=lan; no1[y][25]=lan; no1[y][26]=hui; y++;//43 no1[y][14]=hui; no1[y][15]=lan; no1[y][16]=lan; no1[y][17]=lan; no1[y][18]=lan; no1[y][19]=lan; no1[y][20]=lan; no1[y][21]=lan; no1[y][22]=lan; no1[y][23]=lan; no1[y][24]=lan; no1[y][25]=lan; no1[y][26]=hui; y++;//44 no1[y][15]=hui; no1[y][16]=lan; no1[y][17]=lan; no1[y][18]=lan; no1[y][19]=lan; no1[y][20]=lan; no1[y][21]=lan; no1[y][22]=lan; no1[y][23]=lan; no1[y][24]=lan; no1[y][25]=hui; y++;//45 no1[y][16]=hui; no1[y][17]=hui; no1[y][18]=hui; no1[y][19]=hui; no1[y][20]=hui; no1[y][21]=hui; no1[y][22]=hui; no1[y][23]=hui; no1[y][24]=hui; for(int i=0 ; i<47; i++) { for(int j=0;j<37;j++){ if(no1[i][j]==""){ mc.setBlock(j-175,i+145,-167,251,0); }else{ data=no1[i][j].substr(0,no1[i][j].find(",")); Sleep(10); mc.setBlock(j-175,i+145,-167,251,stoi(data)); } } } return 0; }