#include <iostream>
#include "minecraft.h"
using namespace std;
TxMinecraft mc;
int main(){
bool c=true;
c=mc.ConnectMinecraft("zk.makeblock.net.cn"badaa4c2a1b546f1868517667456b050");
if(!c){
cout<<"连接失败"<<endl;
return 0;
}

cout<<"连接成功"<<endl;

mc.sendChat("");
bool fly=true;
fly=mc.setPlayerFly("liuyouyi",true);
if(true){
cout<<"设置飞行成功";
}
int x,y,z,id,d;
x=833;
y=102;
z=902;
id=251;
d=4;
mc.setBlock(x,y,z+1,id,d);
mc.setBlock(x+2,y,z+1,id,d);
y++;
d=0;
mc.fillBlocks(x,y,z,x+2,y+2,z+2,id,d);
mc.fillBlocks(x-1,y+1,z+1,x-1,y+2,z+3,id,d);
mc.fillBlocks(x+3,y+1,z+1,x+3,y+2,z+3,id,d);
mc.fillBlocks(x,y+3,z,x+2,y+4,z+1,id,d);
d=15;
mc.setBlock(x,y+3,z,id,d);
mc.setBlock(x+2,y+3,z,id,d);
d=4;
mc.fillBlocks(x,y+2,z-1,x+2,y+2,z-1,id,d);
mc.setBlock(x+1,y+1,z,id,d);
mc.CloseMinecraft();
cout<<"断开连接"<<endl;

return 0;
}