#include <iostream> #include <string> #include "minecraft.h" using namespace std; TxMinecraft mc; int main() { bool con = mc.ConnectMinecraft("zk.makeblock.net.cn","4cd7d6e558c943c397a3a5243fa78e19"); if(!con){ cout<<"连接失败"; } int x = 695,y = 4,z = 810; for(int i = 0;i<=33;i++){ mc.drawLine(x+i,y,z,x+i,y,z+10,2,0); mc.drawLine(x+i,y+1,z+1,x+i,y+1,z+9,2,0); mc.drawLine(x+i,y+2,z+2,x+i,y+2,z+8,2,0); mc.drawLine(x+i,y+2,z+3,x+i,y+2,z+7,43,0); mc.drawLine(x+i,y+2,z+4,x+i,y+2,z+6,252,0); mc.drawLine(x+i,y-1,z-3,x+i,y-1,z-2,0,0); mc.drawLine(x+i,y-1,z+12,x+i,y-1,z+13,0,0); mc.drawLine(x+i,y-1,z-3,x+i,y-1,z-2,9,0); mc.drawLine(x+i,y-1,z+12,x+i,y-1,z+13,9,0); if(i%11==0){ mc.drawLine(x+i,y+1,z,x+i,y+6,z,113,0); mc.drawLine(x+i,y+6,z-1,x+i,y+6,z+1,113,0); mc.setBlock(x+i,y+7,z,50,0); } } return 0; }
标签:小路,std,mc,世界,田园,include,con From: https://www.cnblogs.com/wangyihang-xh/p/17207664.html