#include <iostream>
#include "minecraft.h"
#include <Windows.h>
using namespace std;
TxMinecraft mc;
int main() {
bool con=mc.ConnectMinecraft("zk","08bd17c1ea594f2684182fd956c2d172");
if(!con){
cout<<"连接失败";
return 0;
}
string a[37][47],hui="251,7",red="251,14",blue="251,3",green="251,13",
yellow="251,4",zong="251,12",bleak="251,15",bai="251,0";
int y=0,z=0;
string id,data;
// 0
for(int j=11;j<25;j++){
a[j][y]=hui;
}// 1
y++;
a[10][y]=hui;
a[11][y]=bai;
a[12][y]=hui;
a[13][y]=bai;
a[14][y]=bai;
a[15][y]=bai;
a[16][y]=bai;
a[17][y]=hui;
a[18][y]=bai;
a[19][y]=hui;
a[20][y]=bai;
a[21][y]=bai;
a[22][y]=bai;
a[23][y]=bai;
a[24][y]=hui;
// 2
y++;
for(int c=2;c<12;c++){
a[c][y]=hui;
}
a[12][y]=bai;
a[13][y]=bai;
a[14][y]=bai;
a[15][y]=bai;
a[16][y]=bai;
a[17][y]=hui;
a[18][y]=bai;
a[19][y]=bai;
a[20][y]=bai;
a[21][y]=bai;
a[22][y]=bai;
a[23][y]=hui;
//3
y++;
a[1][y]=hui;
a[2][y]=zong;
a[3][y]=zong;
a[4][y]=yellow;
a[5][y]=zong;
a[6][y]=hui;
a[7][y]=bleak;
a[8][y]=bleak;
a[9][y]=hui;
a[10][y]=green;
for(int d=11;d<23;d++){
a[d][y]=hui;
}
//4
y++;
a[0][y]=hui;
a[1][y]=green;
a[2][y]=zong;
a[3][y]=zong;
a[4][y]=yellow;
a[5][y]=yellow;
a[6][y]=hui;
a[7][y]=bleak;
a[8][y]=bleak;
a[9][y]=hui;
a[10][y]=green;
a[11][y]=yellow;
a[12][y]=yellow;
a[13][y]=yellow;
a[14][y]=yellow;
a[15][y]=yellow;
a[16][y]=zong;
a[17][y]=zong;
a[18][y]=zong;
a[19][y]=green;
a[20][y]=green;
a[21][y]=yellow;
for(int e=22;e<35;e++){
a[e][y]=hui;
}
//5
y++;
a[0][y]=hui;
a[1][y]=green;
a[2][y]=green;
a[3][y]=green;
a[4][y]=green;
a[5][y]=green;
a[6][y]=green;
a[7][y]=hui;
a[8][y]=hui;
a[9][y]=zong;
a[10][y]=zong;
a[11][y]=yellow;
a[12][y]=zong;
a[13][y]=zong;
a[14][y]=zong;
a[15][y]=yellow;
a[16][y]=zong;
a[17][y]=zong;
a[18][y]=green;
a[19][y]=green;
a[20][y]=green;
a[21][y]=yellow;
a[22][y]=yellow;
a[23][y]=yellow;
a[24][y]=yellow;
a[25][y]=zong;
a[26][y]=zong;
a[27][y]=hui;
a[28][y]=bleak;
a[29][y]=bleak;
a[30][y]=hui;
a[31][y]=yellow;
a[32][y]=yellow;
a[33][y]=green;
a[34][y]=green;
a[35][y]=hui;
//6
y++;
a[0][y]=hui;
a[1][y]=yellow;
a[2][y]=yellow;
a[3][y]=yellow;
a[4][y]=green;
a[5][y]=yellow;
a[6][y]=yellow;
a[7][y]=hui;
a[8][y]=hui;
a[9][y]=green;
a[10][y]=green;
a[11][y]=yellow;
a[12][y]=yellow;
a[13][y]=green;
a[14][y]=zong;
a[15][y]=yellow;
a[16][y]=yellow;
a[17][y]=yellow;
a[18][y]=hui;
a[19][y]=hui;
a[20][y]=green;
a[21][y]=yellow;
a[22][y]=yellow;
a[23][y]=yellow;
a[24][y]=yellow;
a[25][y]=zong;
a[26][y]=zong;
a[27][y]=hui;
a[28][y]=bleak;
a[29][y]=bleak;
a[30][y]=hui;
a[31][y]=yellow;
a[32][y]=zong;
a[33][y]=zong;
a[34][y]=zong;
a[35][y]=green;
a[36][y]=hui;
//7
y++;
a[0][y]=hui;
a[1][y]=zong;
a[2][y]=yellow;
a[3][y]=yellow;
a[4][y]=zong;
a[5][y]=zong;
a[6][y]=yellow;
a[7][y]=hui;
a[8][y]=hui;
a[9][y]=green;
a[10][y]=zong;
a[11][y]=green;
a[12][y]=yellow;
a[13][y]=green;
a[14][y]=green;
a[15][y]=yellow;
a[16][y]=hui;
a[17][y]=hui;
a[18][y]=bai;
a[19][y]=bai;
a[20][y]=hui;
a[21][y]=hui;
a[22][y]=yellow;
a[23][y]=yellow;
a[24][y]=yellow;
a[25][y]=green;
a[26][y]=yellow;
a[27][y]=yellow;
a[28][y]=hui;
a[29][y]=hui;
a[30][y]=yellow;
a[31][y]=yellow;
a[32][y]=zong;
a[33][y]=zong;
a[34][y]=zong;
a[35][y]=green;
a[36][y]=hui;
//8
y++;
a[0][y]=hui;
a[1][y]=zong;
a[2][y]=yellow;
a[3][y]=yellow;
a[4][y]=zong;
a[5][y]=zong;
a[6][y]=yellow;
a[7][y]=hui;
a[8][y]=hui;
a[9][y]=zong;
a[10][y]=zong;
a[11][y]=yellow;
a[12][y]=zong;
a[13][y]=zong;
a[14][y]=green;
a[15][y]=hui;
a[16][y]=bai;
a[17][y]=hui;
a[18][y]=bai;
a[19][y]=bai;
a[20][y]=hui;
a[21][y]=bai;
a[22][y]=hui;
a[23][y]=green;
a[24][y]=green;
a[25][y]=green;
a[26][y]=green;
a[27][y]=yellow;
a[28][y]=hui;
a[29][y]=hui;
a[30][y]=yellow;
a[31][y]=yellow;
a[32][y]=yellow;
a[33][y]=yellow;
a[34][y]=yellow;
a[35][y]=green;
a[36][y]=hui;
// 9
y++;
a[0][y]=hui;
a[1][y]=zong;
a[2][y]=zong;
a[3][y]=green;
a[4][y]=yellow;
a[5][y]=green;
a[6][y]=green;
a[7][y]=hui;
a[8][y]=hui;
a[9][y]=zong;
a[10][y]=yellow;
a[11][y]=yellow;
a[12][y]=yellow;
a[13][y]=zong;
a[14][y]=zong;
a[15][y]=hui;
a[16][y]=bai;
a[17][y]=bai;
a[18][y]=bai;
a[19][y]=bai;
a[20][y]=bai;
a[21][y]=bai;
a[22][y]=hui;
a[23][y]=zong;
a[24][y]=yellow;
a[25][y]=green;
a[26][y]=yellow;
a[27][y]=zong;
a[28][y]=hui;
a[29][y]=hui;
a[30][y]=yellow;
a[31][y]=yellow;
a[32][y]=green;
a[33][y]=yellow;
a[34][y]=yellow;
a[35][y]=yellow;
a[36][y]=hui;
//10
y++;
a[0][y]=hui;
a[1][y]=green;
a[2][y]=green;
a[3][y]=zong;
a[4][y]=green;
a[5][y]=green;
a[6][y]=hui;
a[7][y]=bleak;
a[8][y]=bleak;
a[9][y]=hui;
a[10][y]=zong;
a[11][y]=zong;
a[12][y]=green;
a[13][y]=zong;
a[14][y]=yellow;
a[15][y]=yellow;
a[16][y]=hui;
a[21][y]=hui;
a[22][y]=zong;
a[23][y]=zong;
a[24][y]=yellow;
a[25][y]=yellow;
a[26][y]=yellow;
a[27][y]=yellow;
a[28][y]=hui;
a[29][y]=hui;
a[30][y]=green;
a[31][y]=green;
a[32][y]=green;
a[33][y]=yellow;
a[34][y]=yellow;
a[35][y]=yellow;
a[36][y]=hui;
//11
y++;
a[1][y]=hui;
a[2][y]=zong;
a[3][y]=zong;
a[4][y]=yellow;
a[5][y]=yellow;
a[6][y]=hui;
a[7][y]=bleak;
a[8][y]=bleak;
a[9][y]=hui;
a[10][y]=zong;
a[11][y]=zong;
a[12][y]=green;
a[13][y]=green;
a[14][y]=green;
a[15][y]=yellow;
a[16][y]=yellow;
a[17][y]=hui;
a[20][y]=hui;
a[21][y]=zong;
a[22][y]=zong;
a[23][y]=zong;
a[24][y]=zong;
a[25][y]=yellow;
a[26][y]=yellow;
a[27][y]=yellow;
a[28][y]=hui;
a[29][y]=hui;
a[30][y]=yellow;
a[31][y]=green;
a[32][y]=green;
a[33][y]=yellow;
a[34][y]=green;
a[35][y]=yellow;
a[36][y]=hui;
//12
y++;
for(int f=2;f<19;f++){
a[f][y]=hui;
}
a[20][y]=hui;
a[21][y]=zong;
a[22][y]=zong;
a[23][y]=zong;
a[24][y]=zong;
a[25][y]=green;
a[26][y]=green;
a[27][y]=hui;
a[28][y]=bleak;
a[29][y]=bleak;
a[30][y]=hui;
a[31][y]=zong;
a[32][y]=yellow;
a[33][y]=zong;
a[34][y]=green;
a[35][y]=green;
a[36][y]=hui;
//13
y++;
a[11][y]=hui;
a[14][y]=hui;
a[18][y]=hui;
a[20][y]=hui;
a[21][y]=hui;
a[22][y]=hui;
a[23][y]=zong;
a[24][y]=zong;
a[25][y]=green;
a[26][y]=green;
a[27][y]=hui;
a[28][y]=bleak;
a[29][y]=bleak;
a[30][y]=hui;
a[31][y]=yellow;
a[32][y]=yellow;
a[33][y]=yellow;
a[34][y]=zong;
a[35][y]=hui;
//14
y++;
a[12][y]=hui;
a[13][y]=hui;
a[14][y]=hui;
a[18][y]=hui;
a[20][y]=hui;
for(int g=23;g<35;g++){
a[g][y]=hui;
}
//15
y++;
a[14][y]=hui;
a[22][y]=hui;
a[23][y]=hui;
//16
y++;
a[16][y]=hui;
a[21][y]=hui;
//17
y++;
a[14][y]=hui;
a[22][y]=hui;
//18
y++;
a[17][y]=hui;
a[18][y]=hui;
a[19][y]=hui;
a[20][y]=hui;
a[21][y]=hui;
//19
y++;
a[17][y]=hui;
a[21][y]=hui;
//20
y++;
a[17][y]=hui;
a[21][y]=hui;
//21
y++;
a[13][y]=hui;
a[14][y]=hui;
a[15][y]=hui;
a[16][y]=hui;
a[22][y]=hui;
a[26][y]=hui;
a[27][y]=hui;
a[28][y]=hui;
a[29][y]=hui;
//22
y++;
for(int h=7;h<13;h++){
a[h][y]=hui;
}
a[23][y]=hui;
a[24][y]=hui;
a[25][y]=hui;
a[30][y]=hui;
//23
y++;
a[5][y]=hui;
a[6][y]=hui;
a[24][y]=hui;
a[27][y]=hui;
a[28][y]=hui;
a[29][y]=hui;
a[31][y]=hui;
//24
y++;
a[4][y]=hui;
a[26][y]=hui;
a[27][y]=hui;
a[28][y]=hui;
a[29][y]=hui;
a[30][y]=hui;
a[31][y]=hui;
//25
y++;
a[3][y]=hui;
a[25][y]=hui;
a[26][y]=hui;
a[27][y]=hui;
a[28][y]=hui;
a[29][y]=hui;
a[30][y]=hui;
a[31][y]=hui;
//26
y++;
a[3][y]=hui;
a[25][y]=hui;
a[26][y]=hui;
a[27][y]=hui;
a[28][y]=hui;
a[29][y]=hui;
a[30][y]=hui;
a[31][y]=hui;
//27
y++;
a[2][y]=hui;
a[27][y]=hui;
a[29][y]=hui;
a[30][y]=hui;
a[31][y]=hui;
//28
y++;
a[0][y]=hui;
a[1][y]=hui;
a[2][y]=hui;
a[25][y]=hui;
a[27][y]=hui;
a[29][y]=hui;
a[31][y]=hui;
//29
y++;
a[0][y]=hui;
a[1][y]=hui;
a[2][y]=hui;
a[25][y]=hui;
a[26][y]=hui;
a[28][y]=hui;
a[31][y]=hui;
//30
y++;
a[2][y]=hui;
a[26][y]=hui;
a[27][y]=hui;
a[28][y]=hui;
a[30][y]=hui;
//31
y++;
a[3][y]=hui;
a[26][y]=hui;
a[27][y]=hui;
for(int t=29;t<36;t++){
a[t][y]=hui;
}
//32
y++;
a[3][y]=hui;
a[13][y]=hui;
a[28][y]=hui;
for(int s=29;s<36;s++){
a[s][y]=red;
}
a[36][y]=hui;
//33
y++;
a[4][y]=hui;
a[13][y]=hui;
a[26][y]=hui;
a[27][y]=hui;
for(int n=28;n<36;n++){
a[n][y]=red;
}
a[36][y]=hui;
//34
y++;
a[5][y]=hui;
a[6][y]=hui;
a[24][y]=hui;
a[25][y]=hui;
for(int m=26;m<32;m++){
a[m][y]=red;
}
a[32][y]=hui;
a[33][y]=hui;
a[34][y]=hui;
a[35][y]=hui;
//35
y++;
a[7][y]=hui;
a[8][y]=hui;
a[9][y]=hui;
for(int l=19;l<32;l++){
a[l][y]=hui;
}
//36
y++;
a[10][y]=hui;
a[11][y]=hui;
a[12][y]=hui;
a[15][y]=hui;
a[16][y]=hui;
a[17][y]=hui;
a[18][y]=hui;
a[19][y]=blue;
a[20][y]=blue;
a[21][y]=blue;
a[22][y]=blue;
a[23][y]=blue;
a[25][y]=blue;
a[26][y]=blue;
a[27][y]=blue;
a[28][y]=hui;
//37
y++;
a[13][y]=hui;
a[14][y]=hui;
a[15][y]=blue;
a[16][y]=blue;
a[17][y]=blue;
a[18][y]=blue;
a[19][y]=blue;
a[20][y]=blue;
a[22][y]=blue;
a[23][y]=blue;
a[25][y]=blue;
a[26][y]=blue;
a[27][y]=blue;
a[28][y]=hui;
//38
y++;
a[12][y]=hui;
a[13][y]=blue;
a[14][y]=blue;
a[15][y]=blue;
a[16][y]=blue;
a[17][y]=blue;
a[18][y]=blue;
a[19][y]=blue;
a[21][y]=blue;
a[23][y]=blue;
a[24][y]=blue;
a[25][y]=blue;
a[26][y]=blue;
a[27][y]=blue;
a[28][y]=hui;
//39
y++;
a[12][y]=hui;
a[13][y]=blue;
a[14][y]=blue;
a[15][y]=blue;
a[16][y]=blue;
a[17][y]=blue;
a[18][y]=blue;
a[20][y]=blue;
a[21][y]=blue;
a[22][y]=blue;
a[25][y]=blue;
a[26][y]=blue;
a[27][y]=blue;
a[28][y]=hui;
//40
y++;
a[12][y]=hui;
a[13][y]=blue;
a[14][y]=blue;
a[15][y]=blue;
a[16][y]=blue;
a[17][y]=blue;
a[18][y]=blue;
a[20][y]=blue;
a[21][y]=blue;
a[22][y]=blue;
a[23][y]=blue;
a[24][y]=blue;
a[27][y]=hui;
//41
y++;
a[13][y]=hui;
a[14][y]=blue;
a[15][y]=blue;
a[16][y]=blue;
for(int p=18;p<27;p++){
a[p][y]=blue;
}
a[27][y]=hui;
//42
y++;
a[13][y]=hui;
a[14][y]=blue;
a[15][y]=blue;
for(int q=17;q<26;q++){
a[q][y]=blue;
}
a[26][y]=hui;
//43
y++;
a[14][y]=blue;
for(int r=14;r<26;r++){
a[r][y]=blue;
}
a[26][y]=hui;
//44
y++;
a[15][y]=blue;
for(int u=15;u<25;u++){
a[u][y]=blue;
}
a[25][y]=hui;
//45
y++;
for(int w=16;w<25;w++){
a[w][y]=hui;
}
int x_,y_,z_;
cout<<"坐标";
cin>>x_>>y_>>z_;
for(int i=0;i<37;i++){
for(int k=0;k<47;k++){
if(a[i][k]==""){
id="251";
data="0";
}else{
id=a[i][k].substr(0,a[i][k].find(","));
data=a[i][k].substr(a[i][k].find(",")+1);
}
mc.setBlock(x_+i,y_+k,z_+z,stoi(id),stoi(data));
Sleep(10);
}
}
return 0;
}