# mc 钟楼()-其他

## mc 钟楼()

``````#include <iostream>
#include "minecraft.h"
using namespace std;
TxMinecraft mc;
int main(int argc, char** argv) {
bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","a9d44e758f6e4cf8b2da2624156f24d3");
if(!con){
cout<<"连接失败"<<mc.Back_data;
return 0;
}
int x=959,y=4,z=-553,id=98,data=0;
mc.fillBlocks(x-5,y-1,z-5,x+25,y+30,z+25,0,0);
//地基
for(int j=0;j<2;j++){
for(int i=0;i<2;i++){
mc.fillBlocks(x+j*15,y-1,z+i*15,x+5+j*15,y-1,z+5+i*15,id,data);
mc.fillBlocks(x+1+j*15,y-1,z+1+i*15,x+4+j*15,y-1,z+4+i*15,0,data);
}
}
//划4条连接线
for(int i=0;i<2;i++){
mc.drawLine(x+1,y+i,z+5,x+1,y+i,z+15,id,data);
}
mc.drawLine(x+1,y+2,z+5,x+1,y+2,z+15,109,0);

for(int i=0;i<2;i++){
mc.drawLine(x+19,y+i,z+5,x+19,y+i,z+15,id,data);
}
mc.drawLine(x+19,y+2,z+5,x+19,y+2,z+15,109,1);

for(int i=0;i<2;i++){
mc.drawLine(x+5,y+i,z+1,x+15,y+i,z+1,id,data);
}
mc.drawLine(x+5,y+2,z+1,x+15,y+2,z+1,109,2);

for(int i=0;i<2;i++){
mc.drawLine(x+5,y+i,z+19,x+15,y+i,z+19,id,data);
}
mc.drawLine(x+5,y+2,z+19,x+15,y+2,z+19,109,3);
//石砖围着外围圈起来
id=98,data=0;
for(int i=0;i<2;i++){
mc.drawLine(x,y+i,z,x+5,y+i,z,98,0);
mc.drawLine(x,y+i,z,x,y+i,z+5,98,0);
mc.drawLine(x,y+2,z,x,y+2,z+5,109,0);
mc.drawLine(x,y+2,z,x+5,y+2,z,109,2);

mc.drawLine(x+15,y+i,z,x+20,y+i,z,98,0);
mc.drawLine(x+20,y+i,z,x+20,y+i,z+5,98,0);
mc.drawLine(x+15,y+2,z,x+20,y+2,z,109,2);
mc.drawLine(x+20,y+2,z,x+20,y+2,z+5,109,1);

mc.drawLine(x,y+i,z+15,x,y+i,z+20,98,0);
mc.drawLine(x,y+i,z+20,x+5,y+i,z+20,98,0);
mc.drawLine(x,y+2,z+15,x,y+2,z+20,109,0);
mc.drawLine(x,y+2,z+20,x+5,y+2,z+20,109,3);

mc.drawLine(x+20,y+i,z+15,x+20,y+i,z+20,98,0);
mc.drawLine(x+15,y+i,z+20,x+20,y+i,z+20,98,0);
mc.drawLine(x+20,y+2,z+15,x+20,y+2,z+20,109,1);
mc.drawLine(x+15,y+2,z+20,x+20,y+2,z+20,109,3);
}

for(int i=2;i<6;i++){
mc.drawLine(x+1,y+i,z+1,x+4,y+i,z+1,24,0);
mc.drawLine(x+1,y+i,z+1,x+1,y+i,z+4,24,0);
mc.drawLine(x+1,y+i,z+19,x+1,y+i,z+16,24,0);
mc.drawLine(x+1,y+i,z+19,x+4,y+i,z+19,24,0);
mc.drawLine(x+16,y+i,z+1,x+19,y+i,z+1,24,0);
mc.drawLine(x+19,y+i,z+1,x+19,y+i,z+4,24,0);
}

return 0;
}
``````
————————
``````#include <iostream>
#include "minecraft.h"
using namespace std;
TxMinecraft mc;
int main(int argc, char** argv) {
bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","a9d44e758f6e4cf8b2da2624156f24d3");
if(!con){
cout<<"连接失败"<<mc.Back_data;
return 0;
}
int x=959,y=4,z=-553,id=98,data=0;
mc.fillBlocks(x-5,y-1,z-5,x+25,y+30,z+25,0,0);
//地基
for(int j=0;j<2;j++){
for(int i=0;i<2;i++){
mc.fillBlocks(x+j*15,y-1,z+i*15,x+5+j*15,y-1,z+5+i*15,id,data);
mc.fillBlocks(x+1+j*15,y-1,z+1+i*15,x+4+j*15,y-1,z+4+i*15,0,data);
}
}
//划4条连接线
for(int i=0;i<2;i++){
mc.drawLine(x+1,y+i,z+5,x+1,y+i,z+15,id,data);
}
mc.drawLine(x+1,y+2,z+5,x+1,y+2,z+15,109,0);

for(int i=0;i<2;i++){
mc.drawLine(x+19,y+i,z+5,x+19,y+i,z+15,id,data);
}
mc.drawLine(x+19,y+2,z+5,x+19,y+2,z+15,109,1);

for(int i=0;i<2;i++){
mc.drawLine(x+5,y+i,z+1,x+15,y+i,z+1,id,data);
}
mc.drawLine(x+5,y+2,z+1,x+15,y+2,z+1,109,2);

for(int i=0;i<2;i++){
mc.drawLine(x+5,y+i,z+19,x+15,y+i,z+19,id,data);
}
mc.drawLine(x+5,y+2,z+19,x+15,y+2,z+19,109,3);
//石砖围着外围圈起来
id=98,data=0;
for(int i=0;i<2;i++){
mc.drawLine(x,y+i,z,x+5,y+i,z,98,0);
mc.drawLine(x,y+i,z,x,y+i,z+5,98,0);
mc.drawLine(x,y+2,z,x,y+2,z+5,109,0);
mc.drawLine(x,y+2,z,x+5,y+2,z,109,2);

mc.drawLine(x+15,y+i,z,x+20,y+i,z,98,0);
mc.drawLine(x+20,y+i,z,x+20,y+i,z+5,98,0);
mc.drawLine(x+15,y+2,z,x+20,y+2,z,109,2);
mc.drawLine(x+20,y+2,z,x+20,y+2,z+5,109,1);

mc.drawLine(x,y+i,z+15,x,y+i,z+20,98,0);
mc.drawLine(x,y+i,z+20,x+5,y+i,z+20,98,0);
mc.drawLine(x,y+2,z+15,x,y+2,z+20,109,0);
mc.drawLine(x,y+2,z+20,x+5,y+2,z+20,109,3);

mc.drawLine(x+20,y+i,z+15,x+20,y+i,z+20,98,0);
mc.drawLine(x+15,y+i,z+20,x+20,y+i,z+20,98,0);
mc.drawLine(x+20,y+2,z+15,x+20,y+2,z+20,109,1);
mc.drawLine(x+15,y+2,z+20,x+20,y+2,z+20,109,3);
}

for(int i=2;i<6;i++){
mc.drawLine(x+1,y+i,z+1,x+4,y+i,z+1,24,0);
mc.drawLine(x+1,y+i,z+1,x+1,y+i,z+4,24,0);
mc.drawLine(x+1,y+i,z+19,x+1,y+i,z+16,24,0);
mc.drawLine(x+1,y+i,z+19,x+4,y+i,z+19,24,0);
mc.drawLine(x+16,y+i,z+1,x+19,y+i,z+1,24,0);
mc.drawLine(x+19,y+i,z+1,x+19,y+i,z+4,24,0);
}

return 0;
}
``````