#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","2839fa7ac28b4f7d8952cc46c1f179ec"); if(!con){ cout<<"连接失败"; } int x=1178; int y=4; int z=-526; int id=2; int data=0; for(int i = 0;i<=10;i++){ mc.drawLine(x,y,z+i,x+12,y,z+i,id,data); } z=-526+1; for(int i = 0;i<=8;i++){ mc.drawLine(x,y+1,z+i,x+12,y+1,z+i,id,data); } z=-526+2; for(int i = 0;i<=6;i++){ mc.drawLine(x,y+2,z+i,x+12,y+2,z+i,id,data); } z=-526+3; id=43; for(int i = 0;i<=4;i++){ mc.drawLine(x,y+2,z+i,x+12,y+2,z+i,id,data); } z=-526+4; id=252; for(int i =0;i<=2;i++){ mc.drawLine(x,y+2,z+i,x+12,y+2,z+i,id,data); } z=-529; y=3; id=9; for(int i = 0;i<=1;i++){ mc.drawLine(x,y+0,z+i,x+12,y+0,z+i,id,data); } z=-514; y=3; id=9; for(int i = 0;i<=1;i++){ mc.drawLine(x,y+0,z+i,x+12,y+0,z+i,id,data); } z=-525; y=6; id=113; mc.drawLine(x,y+0,z+0,x,y+5,z+0,id,data); mc.drawLine(x,y+6,z-1,x,y+6,z+1,id,data); id=89; mc.drawLine(x,y+5,z+1,x,y+5,z+1,id,data); mc.drawLine(x,y+5,z-1,x,y+5,z-1,id,data); return 0; }
标签:小路,mc,int,include,田野,con From: https://www.cnblogs.com/w6826301/p/17207673.html