#include <iostream> #include <string> #include "minecraft.h" using namespace std; TxMinecraft mc; int main(int argc, char** argv) { bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","4c4ce4431bdc409388e0a110f5aa9dcc"); if(!con){ return 0; cout<<"连接失败"; } bool fly=true; mc.setPlayerFly("hanxuyao",fly); string black="35,15",hui="251,6",red="35,14",bai="251,0",bai1="159,0",yellow="35,4",green="35,5",zhong="35,12",blue="35,11",blue1="35,3",id,data; int x,y,z; cin>>x>>y>>z; int a=0; string str[50][27]; //1 for(int c=6;c<=40;c++){ str[c][a]=black; } a++; //2 str[4][a]=black; str[5][a]=black; for(int c=6;c<=8;c++){ str[c][a]=red; } str[9][a]=black; for(int c=10;c<=36;c++){ str[c][a]=hui; } str[37][a]=black; for(int c=38;c<=40;c++){ str[c][a]=blue; } str[41][a]=black; str[42][a]=black; a++; //3 str[3][a]=black; for(int c=4;c<=8;c++){ str[c][a]=red; } for(int c=11;c<=35;c++){ str[c][a]=black; } str[9][a]=black; str[36][a]=hui; str[10][a]=hui; str[37][a]=black; for(int c=38;c<=42;c++){ str[c][a]=blue; } str[43][a]=black; a++; //4 str[2][a]=black; for(int c=3;c<=8;c++){ str[c][a]=red; } for(int c=12;c<=34;c++){ str[c][a]=zhong; } str[9][a]=black; str[11][a]=black; str[35][a]=black; str[36][a]=hui; str[10][a]=hui; str[37][a]=black; for(int c=38;c<=43;c++){ str[c][a]=blue; } str[44][a]=black; a++; //5 str[1][a]=black; str[2][a]=red; str[3][a]=red; str[4][a]=black; for(int c=5;c<=8;c++){ str[c][a]=red; } str[9][a]=black; for(int c=12;c<=19;c++){ str[c][a]=zhong; } for(int c=20;c<=22;c++){ str[c][a]=black; } for(int c=23;c<=26;c++){ str[c][a]=zhong; } for(int c=27;c<=29;c++){ str[c][a]=black; } for(int c=30;c<=34;c++){ str[c][a]=zhong; } str[11][a]=black; str[35][a]=black; str[36][a]=hui; str[10][a]=hui; str[37][a]=black; for(int c=38;c<=41;c++){ str[c][a]=blue; } str[42][a]=black; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //6 str[1][a]=black; for(int c=2;c<=8;c++){ str[c][a]=red; } str[9][a]=black; str[17][a]=blue1; str[18][a]=black; str[19][a]=black; for(int c=11;c<=16;c++){ str[c][a]=black; } str[20][a]=red; str[21][a]=red; str[22][a]=black; str[23][a]=blue; str[24][a]=black; str[25][a]=black; str[26][a]=blue; str[27][a]=black; str[28][a]=red; str[29][a]=red; for(int c=30;c<=35;c++){ str[c][a]=black; } str[11][a]=black; str[35][a]=black; str[36][a]=hui; str[10][a]=hui; str[37][a]=black; for(int c=38;c<=44;c++){ str[c][a]=blue; } str[45][a]=black; a++; //7 str[1][a]=black; str[2][a]=red; str[3][a]=red; str[4][a]=black; str[5][a]=black; str[6][a]=red; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=green; str[13][a]=green; str[14][a]=green; str[15][a]=green; str[16][a]=black; str[17][a]=blue1; str[18][a]=black; str[19][a]=red; str[20][a]=red; str[21][a]=black; str[22][a]=blue; str[23][a]=blue; str[24][a]=blue; str[25][a]=blue; str[26][a]=blue; str[27][a]=blue; str[28][a]=black; str[29][a]=black; str[30][a]=blue1; str[31][a]=black; str[32][a]=yellow; str[33][a]=black; str[34][a]=yellow; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=blue; str[42][a]=blue; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //8 str[1][a]=black; str[2][a]=red; str[3][a]=black; str[4][a]=hui; str[5][a]=hui; str[6][a]=black; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=green; str[13][a]=green; str[14][a]=green; str[15][a]=green; str[16][a]=black; str[17][a]=black; str[18][a]=bai1; str[19][a]=black; str[20][a]=black; str[21][a]=blue; str[22][a]=blue; str[23][a]=yellow; str[24][a]=blue; str[25][a]=blue; str[26][a]=black; str[27][a]=black; str[28][a]=bai1; str[29][a]=bai1; str[30][a]=black; str[31][a]=black; str[32][a]=yellow; str[33][a]=black; str[34][a]=yellow; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=black; str[42][a]=blue; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //9 str[1][a]=black; str[2][a]=red; str[3][a]=black; str[4][a]=hui; str[5][a]=hui; str[6][a]=black; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=green; str[13][a]=black; str[14][a]=green; str[15][a]=green; str[16][a]=black; str[17][a]=black; str[18][a]=bai1; str[19][a]=red; str[20][a]=black; str[21][a]=blue; str[22][a]=blue; str[23][a]=blue; str[24][a]=blue; str[25][a]=black; str[26][a]=red; str[27][a]=red; str[28][a]=bai1; str[29][a]=bai1; str[30][a]=bai1; str[31][a]=black; str[32][a]=black; str[33][a]=yellow; str[34][a]=black; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=black; str[41][a]=black; str[42][a]=black; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //10 str[1][a]=black; str[2][a]=red; str[3][a]=red; str[4][a]=black; str[5][a]=black; str[6][a]=red; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=green; str[13][a]=black; str[14][a]=green; str[15][a]=black; str[16][a]=blue1; str[17][a]=black; str[18][a]=black; str[19][a]=red; str[20][a]=black; str[21][a]=red; str[22][a]=red; str[23][a]=blue; str[24][a]=blue; str[25][a]=red; str[26][a]=red; str[27][a]=red; str[28][a]=red; str[29][a]=bai1; str[30][a]=bai1; str[31][a]=black; str[32][a]=blue1; str[33][a]=blue1; str[34][a]=blue1; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=black; str[42][a]=blue; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //11 str[1][a]=black; str[2][a]=red; str[3][a]=red; str[4][a]=red; str[5][a]=red; str[6][a]=red; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=green; str[13][a]=green; str[14][a]=green; str[15][a]=black; str[16][a]=blue1; str[17][a]=blue1; str[18][a]=blue1; str[19][a]=black; str[20][a]=black; str[21][a]=black; str[22][a]=red; str[23][a]=red; str[24][a]=blue; str[25][a]=blue; str[26][a]=red; str[27][a]=red; str[28][a]=red; str[29][a]=black; str[30][a]=black; str[31][a]=blue1; str[32][a]=blue1; str[33][a]=blue1; str[34][a]=blue1; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=blue; str[42][a]=blue; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //12 str[1][a]=black; str[2][a]=red; str[3][a]=red; str[4][a]=red; str[5][a]=red; str[6][a]=red; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=green; str[13][a]=green; str[14][a]=black; str[15][a]=blue1; str[16][a]=blue1; str[17][a]=blue1; str[18][a]=blue1; str[19][a]=blue1; str[20][a]=black; str[21][a]=bai1; str[22][a]=bai1; str[23][a]=bai1; str[24][a]=bai1; str[25][a]=bai1; str[26][a]=black; str[27][a]=black; str[28][a]=black; str[29][a]=blue1; str[30][a]=blue1; str[31][a]=blue1; str[32][a]=blue1; str[33][a]=blue1; str[34][a]=blue1; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=blue; str[42][a]=blue; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //13 str[1][a]=black; str[2][a]=red; str[3][a]=red; str[4][a]=red; str[5][a]=red; str[6][a]=red; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=black; str[13][a]=black; str[14][a]=blue1; str[15][a]=blue1; str[16][a]=blue1; str[17][a]=blue1; str[18][a]=blue1; str[19][a]=black; str[20][a]=black; str[21][a]=black; str[22][a]=black; str[23][a]=black; str[24][a]=bai1; str[25][a]=bai1; str[26][a]=bai1; str[27][a]=black; str[28][a]=black; str[29][a]=blue1; str[30][a]=blue1; str[31][a]=blue1; str[32][a]=blue1; str[33][a]=blue1; str[34][a]=blue1; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=blue; str[42][a]=blue; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //14 str[1][a]=black; str[2][a]=red; str[3][a]=red; str[4][a]=black; str[5][a]=red; str[6][a]=red; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=blue1; str[13][a]=blue1; str[14][a]=blue1; str[15][a]=blue1; str[16][a]=blue1; str[17][a]=blue1; str[18][a]=black; str[19][a]=bai1; str[20][a]=bai1; str[21][a]=bai1; str[22][a]=black; str[23][a]=bai1; str[24][a]=bai1; str[25][a]=black; str[26][a]=black; str[27][a]=bai1; str[28][a]=bai1; str[29][a]=black; str[30][a]=blue1; str[31][a]=blue1; str[32][a]=blue1; str[33][a]=blue1; str[34][a]=blue1; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=black; str[42][a]=black; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //15 str[1][a]=black; str[2][a]=red; str[3][a]=black; str[4][a]=black; str[5][a]=black; str[6][a]=red; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=blue1; str[13][a]=blue1; str[14][a]=blue1; str[15][a]=blue1; str[16][a]=blue1; str[17][a]=blue1; str[18][a]=black; str[19][a]=bai1; str[20][a]=bai1; str[21][a]=bai1; str[22][a]=bai1; str[23][a]=bai1; str[24][a]=bai1; str[25][a]=black; str[26][a]=black; str[27][a]=bai1; str[28][a]=bai1; str[29][a]=black; str[30][a]=blue1; str[31][a]=blue1; str[32][a]=blue1; str[33][a]=blue1; str[34][a]=blue1; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=black; str[41][a]=hui; str[42][a]=hui; str[43][a]=black; str[44][a]=blue; str[45][a]=black; a++; //16 str[1][a]=black; str[2][a]=red; str[3][a]=red; str[4][a]=black; str[5][a]=red; str[6][a]=red; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=blue1; str[13][a]=blue1; str[14][a]=blue1; str[15][a]=blue1; str[16][a]=blue1; str[17][a]=blue1; str[18][a]=blue1; str[19][a]=black; str[20][a]=black; str[21][a]=black; str[22][a]=bai1; str[23][a]=black; str[24][a]=bai1; str[25][a]=bai1; str[26][a]=black; str[27][a]=black; str[28][a]=black; str[29][a]=blue1; str[30][a]=black; str[31][a]=black; str[32][a]=black; str[33][a]=black; str[34][a]=black; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=black; str[41][a]=hui; str[42][a]=hui; str[43][a]=black; str[44][a]=blue; str[45][a]=black; a++; //17 str[1][a]=black; str[2][a]=red; str[3][a]=red; str[4][a]=red; str[5][a]=red; str[6][a]=black; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=blue1; str[13][a]=blue1; str[14][a]=blue1; str[15][a]=blue1; str[16][a]=blue1; str[17][a]=blue1; str[18][a]=black; str[19][a]=red; str[20][a]=red; str[21][a]=red; str[22][a]=red; str[23][a]=red; str[24][a]=red; str[25][a]=red; str[26][a]=red; str[27][a]=red; str[28][a]=black; str[29][a]=black; str[30][a]=black; str[31][a]=bai; str[32][a]=bai; str[33][a]=bai; str[34][a]=bai; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=black; str[42][a]=black; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //18 str[1][a]=black; str[2][a]=red; str[3][a]=red; str[4][a]=red; str[5][a]=black; str[6][a]=black; str[7][a]=black; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=blue1; str[13][a]=blue1; str[14][a]=blue1; str[15][a]=blue1; str[16][a]=blue1; str[17][a]=blue1; str[18][a]=blue1; str[19][a]=black; str[20][a]=black; str[21][a]=black; str[22][a]=red; str[23][a]=red; str[24][a]=red; str[25][a]=red; str[26][a]=red; str[27][a]=black; str[28][a]=black; str[29][a]=bai; str[30][a]=bai; str[31][a]=bai; str[32][a]=bai; str[33][a]=bai; str[34][a]=bai; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=blue; str[42][a]=blue; str[43][a]=blue; str[44][a]=blue; str[45][a]=black; a++; //19 str[2][a]=black; str[3][a]=red; str[4][a]=red; str[5][a]=red; str[6][a]=black; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; str[11][a]=black; str[12][a]=blue1; str[13][a]=blue1; str[14][a]=blue1; str[15][a]=blue1; str[16][a]=blue1; str[17][a]=blue1; str[18][a]=blue1; str[19][a]=blue1; str[20][a]=blue1; str[21][a]=black; str[22][a]=black; str[23][a]=black; str[24][a]=black; str[25][a]=black; str[26][a]=black; str[27][a]=bai; str[28][a]=bai; str[29][a]=bai; str[30][a]=bai; str[31][a]=bai; str[32][a]=bai; str[33][a]=bai; str[34][a]=bai; str[35][a]=black; str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=black; str[40][a]=black; str[41][a]=blue; str[42][a]=blue; str[43][a]=blue; str[44][a]=black; a++; //20 str[3][a]=black; str[4][a]=red; str[5][a]=red; str[6][a]=red; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; for(int c=11;c<=35;c++){ str[c][a]=black; } str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=blue; str[42][a]=blue; str[43][a]=black; a++; //21 str[4][a]=black; str[5][a]=black; str[6][a]=black; str[7][a]=red; str[8][a]=red; str[9][a]=black; str[10][a]=hui; for(int c=10;c<=36;c++){ str[c][a]=hui; } str[36][a]=hui; str[37][a]=black; str[38][a]=blue; str[39][a]=blue; str[40][a]=blue; str[41][a]=black; str[42][a]=black; a++; //22 for(int c=6;c<=40;c++){ str[c][a]=black; } a++; cout<<"!"<<endl; for(int i=0;i<50;i++){ for(int j=0;j<27;j++){ //110 20 -229 cout<<"VF"<<endl; id=str[i][j].substr(0,str[i][j].find(",")); data=str[i][j].substr(str[i][j].find(",")+1); mc.setBlock(x+i,y+j,z,stoi(id),stoi(data)); } } return 0; }
标签:cn,mc,int,游戏机,include,con From: https://www.cnblogs.com/hanxuyao/p/17488751.html