#include <iostream> #include <string> #include "minecraft.h" using namespace std; TxMinecraft mc; int main() { bool con=mc.ConnectMinecraft("zk","919b005179e840e1bf78fef437b2f298"); if(!con){ cout<<"连接失败"; return 0; } bool fly=true; mc.setPlayerFly("陈若麟",fly); int x,y,z,id,data; cout<<"输入你的坐标"; cin>>x>>y>>z; for(int i=0;i<50;i++){ mc.drawLine(x-3,y-1,z+i,x-2,y-1,z+i,9,0); mc.drawLine(x+13,y-1,z+i,x+14,y-1,z+i,9,0); mc.drawLine(x,y,z+i,x+11,y,z+i,2,0); mc.drawLine(x+1,y+1,z+i,x+10,y+1,z+i,2,0); mc.drawLine(x+2,y+2,z+i,x+9,y+2,z+i,2,0); mc.drawLine(x+4,y+2,z+i,x+7,y+2,z+i,252,0); mc.drawLine(x+3,y+2,z,x+3,y+2,z+i,43,0); mc.drawLine(x+8,y+2,z,x+8,y+2,z+i,43,0); } for(int i=0;i<45;i++){ if(i%9==0){ mc.drawLine(x+2,y+3,z+i,x+2,y+7,z+i,113,0); mc.drawLine(x+1,y+7,z+i,x+3,y+7,z+i,113,0); mc.drawLine(x+2,y+8,z+i,x+2,y+8,z+i,89,0); } } return 0; }
标签:小路,mc,int,include,田野,con From: https://www.cnblogs.com/As10016/p/17207660.html