#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","08bd17c1ea594f2684182fd956c2d172"); if(!con){ cout<<"失败"; return 0; } mc.setPlayerFly("fushuxuan",true); cout<<"输入坐标"; int x,y,z,id,data; cin>>x>>y>>z; for(int i=0;i<=10;i++){ mc.drawLine(x+i,y,z,x+i,y,z+10,2,0); } for(int j=1;j<=9;j++){ mc.drawLine(x+j,y+1,z,x+j,y+1,z+10,2,0); } for(int k=2;k<=8;k++){ mc.drawLine(x+k,y+2,z,x+k,y+2,z+10,2,0); } mc.drawLine(x-2,y-1,z,x-2,y-1,z+10,9,0); mc.drawLine(x-3,y-1,z,x-3,y-1,z+10,9,0); mc.drawLine(x+12,y-1,z,x+12,y-1,z+10,9,0); mc.drawLine(x+13,y-1,z,x+13,y-1,z+10,9,0); mc.drawLine(x+3,y+2,z,x+3,y+2,z+10,43,0); mc.drawLine(x+7,y+2,z,x+7,y+2,z+10,43,0); mc.drawLine(x+4,y+2,z,x+4,y+2,z+10,252,0); mc.drawLine(x+5,y+2,z,x+5,y+2,z+10,252,0); mc.drawLine(x+6,y+2,z,x+6,y+2,z+10,252,0); mc.drawLine(x+1,y+2,z,x+1,y+10,z,113,0); mc.setBlock(x,y+10,z,113,0); mc.setBlock(x+2,y+10,z,113,0); mc.setBlock(x,y+9,z,89,0); mc.drawLine(x+1,y+2,z+7,x+1,y+10,z+7,113,0); mc.setBlock(x,y+10,z+7,113,0); mc.setBlock(x+2,y+10,z+7,113,0); mc.setBlock(x,y+9,z+7,89,0); return 0; }
标签:小路,mc,int,include,田野,con From: https://www.cnblogs.com/fushuxuan/p/17207669.html