史努比
#include <iostream> #include <string> #include "minecraft.h" #include "Windows.h" using namespace std; TxMinecraft mc; string x,y,z; string id,data; int main() { bool con=mc.ConnectMinecraft("zk","919b005179e840e1bf78fef437b2f298"); if(!con){ cout<<"连接失败"; } bool fly=true; mc.setPlayerFly("陈若麟",fly); int t,h,u; string a[37][47]; int b=0; string hui="251,7"; string zong="251,12"; string huang="251,4"; string hei="251,15"; string hong="251,14"; string lan="251,3"; string lu="251,13"; cin>>t>>h>>u; //0 a[11][b]=hui; a[12][b]=hui; a[13][b]=hui; a[14][b]=hui; a[15][b]=hui; a[16][b]=hui; a[17][b]=hui; a[18][b]=hui; a[19][b]=hui; a[20][b]=hui; a[21][b]=hui; a[22][b]=hui; a[23][b]=hui; a[24][b]=hui; b++; //1 a[10][b]=hui; a[12][b]=hui; a[17][b]=hui; a[19][b]=hui; a[24][b]=hui; b++; //2 a[2][b]=hui; a[3][b]=hui; a[4][b]=hui; a[5][b]=hui; a[6][b]=hui; a[7][b]=hui; a[8][b]=hui; a[9][b]=hui; a[10][b]=hui; a[17][b]=hui; a[11][b]=hui; a[23][b]=hui; //3 a[1][b]=hui; a[2][b]=zong; a[3][b]=zong; a[4][b]=huang; a[5][b]=zong; a[6][b]=hui; a[7][b]=hei; a[8][b]=hei; a[9][b]=hui; a[10][b]=lu; a[11][b]=hui; a[12][b]=hui; a[13][b]=hui; a[14][b]=hui; a[15][b]=hui; a[16][b]=hui; a[17][b]=hui; a[18][b]=hui; a[19][b]=hui; a[20][b]=hui; a[21][b]=hui; a[22][b]=hui; b++; //4 a[0][b]=hui; a[1][b]=lu; a[2][b]=zong; a[3][b]=zong; a[4][b]=huang; a[5][b]=huang; a[6][b]=hui; a[7][b]=hei; a[8][b]=hei; a[9][b]=hui; a[10][b]=lu; a[11][b]=huang; a[12][b]=huang; a[13][b]=huang; a[14][b]=huang; a[15][b]=huang; a[16][b]=zong; a[17][b]=zong; a[18][b]=zong; a[19][b]=lu; a[20][b]=lu; a[21][b]=huang; a[22][b]=hui; a[23][b]=hui; a[24][b]=hui; a[25][b]=hui; a[26][b]=hui; a[27][b]=hui; a[28][b]=hui; a[29][b]=hui; a[30][b]=hui; a[31][b]=hui; a[32][b]=hui; a[33][b]=hui; a[34][b]=hui; b++; //5 a[0][b]=hui; a[1][b]=lu; a[2][b]=lu; a[3][b]=lu; a[4][b]=lu; a[5][b]=lu; a[6][b]=lu; a[7][b]=hui; a[8][b]=hui; a[9][b]=zong; a[10][b]=zong; a[11][b]=huang; a[12][b]=zong; a[13][b]=zong; a[14][b]=zong; a[15][b]=huang; a[16][b]=zong; a[17][b]=zong; a[18][b]=lu; a[19][b]=lu; a[20][b]=lu; a[21][b]=huang; a[22][b]=huang; a[23][b]=huang; a[24][b]=huang; a[25][b]=zong; a[26][b]=zong; a[27][b]=hui; a[28][b]=hei; a[29][b]=hei; a[30][b]=hui; a[31][b]=huang; a[32][b]=huang; a[33][b]=lu; a[34][b]=lu; a[35][b]=hui; b++; //6 a[0][b]=hui; a[1][b]=huang; a[2][b]=huang; a[3][b]=huang; a[4][b]=lu; a[5][b]=huang; a[6][b]=huang; a[7][b]=hui; a[8][b]=hui; a[9][b]=lu; a[10][b]=lu; a[11][b]=huang; a[12][b]=huang; a[13][b]=lu; a[14][b]=zong; a[15][b]=huang; a[16][b]=huang; a[17][b]=huang; a[18][b]=hui; a[19][b]=hui; a[20][b]=lu; a[21][b]=huang; a[22][b]=huang; a[23][b]=huang; a[24][b]=huang; a[25][b]=zong; a[26][b]=zong; a[27][b]=hui; a[28][b]=hei; a[29][b]=hei; a[30][b]=hui; a[31][b]=huang; a[32][b]=zong; a[33][b]=zong; a[34][b]=zong; a[35][b]=lu; a[36][b]=hui; b++; //7 a[0][b]=hui; a[1][b]=zong; a[2][b]=huang; a[3][b]=huang; a[4][b]=zong; a[5][b]=zong; a[6][b]=huang; a[7][b]=hui; a[8][b]=hui; a[9][b]=lu; a[10][b]=zong; a[11][b]=lu; a[12][b]=huang; a[13][b]=lu; a[14][b]=lu; a[15][b]=huang; a[16][b]=hui; a[17][b]=hui; a[20][b]=hui; a[21][b]=hui; a[22][b]=huang; a[23][b]=huang; a[24][b]=huang; a[25][b]=lu; a[26][b]=huang; a[27][b]=huang; a[28][b]=hui; a[29][b]=hui; a[30][b]=huang; a[31][b]=huang; a[32][b]=zong; a[33][b]=zong; a[34][b]=zong; a[35][b]=lu; a[36][b]=hui; b++; //8 a[0][b]=hui; a[1][b]=zong; a[2][b]=huang; a[3][b]=huang; a[4][b]=zong; a[5][b]=zong; a[6][b]=huang; a[7][b]=hui; a[8][b]=hui; a[9][b]=zong; a[10][b]=zong; a[11][b]=huang; a[12][b]=zong; a[13][b]=zong; a[14][b]=lu; a[15][b]=hui; a[17][b]=hui; a[20][b]=hui; a[22][b]=hui; a[23][b]=lu; a[24][b]=lu; a[25][b]=lu; a[26][b]=lu; a[27][b]=huang; a[28][b]=hui; a[29][b]=hui; a[30][b]=huang; a[31][b]=huang; a[32][b]=huang; a[33][b]=huang; a[34][b]=huang; a[35][b]=lu; a[36][b]=hui; b++; //9 a[0][b]=hui; a[1][b]=zong; a[2][b]=zong; a[3][b]=lu; a[4][b]=huang; a[5][b]=lu; a[6][b]=lu; a[7][b]=hui; a[8][b]=hui; a[9][b]=zong; a[10][b]=huang; a[11][b]=huang; a[12][b]=huang; a[13][b]=zong; a[14][b]=zong; a[15][b]=hui; a[22][b]=hui; a[23][b]=zong; a[24][b]=huang; a[25][b]=lu; a[26][b]=huang; a[27][b]=zong; a[28][b]=hui; a[29][b]=hui; a[30][b]=huang; a[31][b]=huang; a[32][b]=lu; a[33][b]=huang; a[34][b]=huang; a[35][b]=huang; a[36][b]=hui; b++; //10 a[0][b]=hui; a[1][b]=lu; a[2][b]=lu; a[3][b]=zong; a[4][b]=lu; a[5][b]=lu; a[6][b]=hui; a[7][b]=hei; a[8][b]=hei; a[9][b]=hui; a[10][b]=zong; a[11][b]=zong; a[12][b]=lu; a[13][b]=zong; a[14][b]=huang; a[15][b]=huang; a[16][b]=hui; a[21][b]=hui; a[22][b]=zong; a[23][b]=zong; a[24][b]=huang; a[25][b]=huang; a[26][b]=huang; a[27][b]=huang; a[28][b]=hui; a[29][b]=hui; a[30][b]=lu; a[31][b]=lu; a[32][b]=lu; a[33][b]=huang; a[34][b]=huang; a[35][b]=huang; a[36][b]=hui; b++; //11 a[1][b]=hui; a[2][b]=zong; a[3][b]=zong; a[4][b]=huang; a[5][b]=huang; a[6][b]=hui; a[7][b]=hei; a[8][b]=hei; a[9][b]=hui; a[10][b]=zong; a[11][b]=zong; a[12][b]=lu; a[13][b]=lu; a[14][b]=lu; a[15][b]=huang; a[16][b]=huang; a[17][b]=hui; a[20][b]=hui; a[21][b]=zong; a[22][b]=zong; a[23][b]=zong; a[24][b]=zong; a[25][b]=huang; a[26][b]=huang; a[27][b]=huang; a[28][b]=hui; a[29][b]=hui; a[30][b]=huang; a[31][b]=lu; a[32][b]=lu; a[33][b]=huang; a[34][b]=lu; a[35][b]=huang; a[36][b]=hui; b++; //12 a[1][b]=hui; a[2][b]=hui; a[3][b]=hui; a[4][b]=hui; a[5][b]=hui; a[6][b]=hui; a[7][b]=hui; a[8][b]=hui; a[9][b]=hui; a[10][b]=hui; a[11][b]=hui; a[12][b]=hui; a[13][b]=hui; a[14][b]=hui; a[15][b]=hui; a[16][b]=hui; a[17][b]=hui; a[18][b]=hui; a[20][b]=hui; a[21][b]=zong; a[22][b]=zong; a[23][b]=zong; a[24][b]=zong; a[25][b]=lu; a[26][b]=lu; a[27][b]=hui; a[28][b]=hei; a[29][b]=hei; a[30][b]=hui; a[31][b]=zong; a[32][b]=huang; a[33][b]=zong; a[34][b]=lu; a[35][b]=lu; a[36][b]=hui; b++; //13 a[11][b]=hui; a[14][b]=hui; a[18][b]=hui; a[20][b]=hui; a[21][b]=hui; a[22][b]=hui; a[23][b]=zong; a[24][b]=zong; a[25][b]=lu; a[26][b]=lu; a[27][b]=hui; a[28][b]=hei; a[29][b]=hei; a[30][b]=hui; a[31][b]=huang; a[32][b]=huang; a[33][b]=huang; a[34][b]=zong; a[35][b]=hui; b++; //14 a[12][b]=hui; a[13][b]=hui; a[14][b]=hui; a[18][b]=hui; a[20][b]=hui; a[23][b]=hui; a[24][b]=hui; a[25][b]=hui; a[26][b]=hui; a[27][b]=hui; a[28][b]=hui; a[29][b]=hui; a[30][b]=hui; a[31][b]=hui; a[32][b]=hui; a[33][b]=hui; a[34][b]=hui; b++; //15 a[14][b]=hui; a[22][b]=hui; a[23][b]=hui; b++; //16 a[15][b]=hui; a[22][b]=hui; b++; //17 a[16][b]=hui; a[21][b]=hui; b++; //18 a[17][b]=hui; a[18][b]=hui; a[19][b]=hui; a[20][b]=hui; a[21][b]=hui; b++; //19 a[17][b]=hui; a[21][b]=hui; b++; //20 a[17][b]=hui; a[21][b]=hui; b++; //21 a[13][b]=hui; a[14][b]=hui; a[16][b]=hui; a[15][b]=hui; a[22][b]=hui; a[26][b]=hui; a[27][b]=hui; a[28][b]=hui; a[29][b]=hui; b++; //22 a[7][b]=hui; a[8][b]=hui; a[9][b]=hui; a[10][b]=hui; a[11][b]=hui; a[12][b]=hui; a[23][b]=hui; a[24][b]=hui; a[25][b]=hui; a[30][b]=hui; b++; //23 a[5][b]=hui; a[6][b]=hui; a[24][b]=hui; a[27][b]=hui; a[28][b]=hui; a[29][b]=hui; a[31][b]=hui; b++; //24 a[4][b]=hui; a[26][b]=hui; a[27][b]=hui; a[28][b]=hui; a[29][b]=hui; a[30][b]=hui; a[32][b]=hui; b++; //25 a[3][b]=hui; a[25][b]=hui; a[26][b]=hui; a[27][b]=hui; a[28][b]=hui; a[29][b]=hui; a[30][b]=hui; a[32][b]=hui; b++; //26 a[3][b]=hui; a[25][b]=hui; a[26][b]=hui; a[27][b]=hui; a[28][b]=hui; a[29][b]=hui; a[30][b]=hui; a[32][b]=hui; b++; //27 a[2][b]=hui; a[27][b]=hui; a[29][b]=hui; a[30][b]=hui; a[32][b]=hui; b++; //28 a[2][b]=hui; a[1][b]=hui; a[0][b]=hui; a[25][b]=hui; a[27][b]=hui; a[29][b]=hui; a[31][b]=hui; b++; //29 a[2][b]=hui; a[1][b]=hui; a[0][b]=hui; a[25][b]=hui; a[26][b]=hui; a[28][b]=hui; a[31][b]=hui; b++; //30 a[2][b]=hui; a[26][b]=hui; a[27][b]=hui; a[28][b]=hui; a[30][b]=hui; b++; //31 a[3][b]=hui; a[26][b]=hui; a[27][b]=hui; a[29][b]=hui; a[30][b]=hui; a[31][b]=hui; a[32][b]=hui; a[33][b]=hui; a[34][b]=hui; a[35][b]=hui; b++; //32 a[3][b]=hui; a[13][b]=hui; a[28][b]=hui; a[29][b]=hong; a[30][b]=hong; a[31][b]=hong; a[32][b]=hong; a[33][b]=hong; a[34][b]=hong; a[35][b]=hong; a[36][b]=hui; b++; //33 a[4][b]=hui; a[13][b]=hui; a[26][b]=hui; a[27][b]=hui; a[28][b]=hong; a[29][b]=hong; a[30][b]=hong; a[31][b]=hong; a[32][b]=hong; a[33][b]=hong; a[34][b]=hong; a[35][b]=hong; a[36][b]=hui; b++; //34 a[5][b]=hui; a[6][b]=hui; a[24][b]=hui; a[25][b]=hui; a[26][b]=hong; a[27][b]=hong; a[28][b]=hong; a[29][b]=hong; a[30][b]=hong; a[31][b]=hong; a[32][b]=hui; a[33][b]=hui; a[34][b]=hui; a[35][b]=hui; b++; //35 a[7][b]=hui; a[8][b]=hui; a[9][b]=hui; a[19][b]=hui; a[20][b]=hui; a[21][b]=hui; a[22][b]=hui; a[23][b]=hui; a[24][b]=hui; a[25][b]=hui; a[26][b]=hui; a[27][b]=hui; a[28][b]=hui; a[29][b]=hui; a[30][b]=hui; a[31][b]=hui; b++; //36 a[10][b]=hui; a[11][b]=hui; a[12][b]=hui; a[15][b]=hui; a[16][b]=hui; a[17][b]=hui; a[18][b]=hui; a[19][b]=lan; a[20][b]=lan; a[21][b]=lan; a[22][b]=lan; a[23][b]=lan; a[25][b]=lan; a[26][b]=lan; a[27][b]=lan; a[28][b]=hui; b++; //37 a[13][b]=hui; a[14][b]=hui; a[15][b]=lan; a[16][b]=lan; a[17][b]=lan; a[18][b]=lan; a[19][b]=lan; a[20][b]=lan; a[22][b]=lan; a[23][b]=lan; a[25][b]=lan; a[26][b]=lan; a[27][b]=lan; a[28][b]=hui; b++; //38 a[12][b]=hui; a[13][b]=lan; a[14][b]=lan; a[15][b]=lan; a[16][b]=lan; a[17][b]=lan; a[18][b]=lan; a[19][b]=lan; a[21][b]=lan; a[23][b]=lan; a[24][b]=lan; a[25][b]=lan; a[26][b]=lan; a[27][b]=lan; a[28][b]=hui; b++; //39 a[12][b]=hui; a[13][b]=lan; a[14][b]=lan; a[15][b]=lan; a[16][b]=lan; a[17][b]=lan; a[18][b]=lan; a[20][b]=lan; a[21][b]=lan; a[22][b]=lan; a[25][b]=lan; a[26][b]=lan; a[27][b]=lan; a[28][b]=hui; b++; //40 a[12][b]=hui; a[13][b]=lan; a[14][b]=lan; a[15][b]=lan; a[16][b]=lan; a[17][b]=lan; a[19][b]=lan; a[20][b]=lan; a[21][b]=lan; a[22][b]=lan; a[23][b]=lan; a[24][b]=lan; a[27][b]=hui; b++; //41 a[13][b]=hui; a[14][b]=lan; a[15][b]=lan; a[16][b]=lan; a[18][b]=lan; a[19][b]=lan; a[20][b]=lan; a[21][b]=lan; a[22][b]=lan; a[23][b]=lan; a[24][b]=lan; a[25][b]=lan; a[26][b]=lan; a[27][b]=hui; b++; //42 a[13][b]=hui; a[14][b]=lan; a[15][b]=lan; a[17][b]=lan; a[18][b]=lan; a[19][b]=lan; a[20][b]=lan; a[21][b]=lan; a[22][b]=lan; a[23][b]=lan; a[24][b]=lan; a[25][b]=lan; a[26][b]=hui; b++; //43 a[14][b]=hui; a[15][b]=lan; a[16][b]=lan; a[17][b]=lan; a[18][b]=lan; a[19][b]=lan; a[20][b]=lan; a[21][b]=lan; a[22][b]=lan; a[23][b]=lan; a[24][b]=lan; a[25][b]=lan; a[26][b]=hui; b++; //44 a[15][b]=hui; a[16][b]=lan; a[17][b]=lan; a[18][b]=lan; a[19][b]=lan; a[20][b]=lan; a[21][b]=lan; a[22][b]=lan; a[23][b]=lan; a[24][b]=lan; a[25][b]=hui; b++; //45 a[16][b]=hui; a[17][b]=hui; a[18][b]=hui; a[19][b]=hui; a[20][b]=hui; a[21][b]=hui; a[22][b]=hui; a[23][b]=hui; a[24][b]=hui; b++; for(int i=0;i<47;i++){ cout<<i<<" "; for(int j=0;j<=37;j++){ if(a[j][i]==""){ mc.setBlock(t+j,h+i,u,251,0); Sleep(10); }else{ cout<<j<<endl; id=a[j][i].substr(0,a[j][i].find(",")); a[j][i]=a[j][i].substr(a[j][i].find(",")+1); data=a[j][i].substr(0,a[j][i].find(",")); mc.setBlock(t+j,h+i,u,stoi(id),stoi(data)); Sleep(10); } } } return 0; }