#include <iostream> #include "minecraft.h" #include <Windows.h> using namespace std; TxMinecraft mc; void no1(int x,int y,int z,int id,int data){ id=24,data=1; mc.fillBlocks(x,y,z,x+50,y+50,z,id,data); id=179,data=1; mc.drawLine(x,y+10,z,x+10,y,z,id,data); mc.drawLine(x+40,y,z,x+50,y+10,z,id,data); mc.drawLine(x+21,y,z,x+21,y+12,z,id,data); mc.drawLine(x+29,y,z,x+29,y+12,z,id,data); mc.drawLine(x+15,y+4,z,x+7,y+12,z,id,data); mc.drawLine(x+35,y+4,z,x+43,y+12,z,id,data); mc.drawLine(x+15,y+4,z,x+19,y+8,z,id,data); mc.drawLine(x+35,y+4,z,x+31,y+8,z,id,data); mc.drawLine(x+19,y+8,z,x+8,y+19,z,id,data); mc.drawLine(x+31,y+8,z,x+42,y+19,z,id,data); mc.drawLine(x+7,y+12,z,x+11,y+16,z,id,data); mc.drawLine(x+43,y+12,z,x+39,y+16,z,id,data); mc.drawLine(x+6,y+16,z,x+6,y+35,z,id,data); mc.drawLine(x+44,y+16,z,x+44,y+35,z,id,data); mc.drawLine(x+25,y+8,z,x+22,y+11,z,id,data); mc.drawLine(x+25,y+8,z,x+28,y+11,z,id,data); mc.setBlock(x+25,y+7,z,id,data); mc.drawLine(x+25,y+15,z,x+21,y+19,z,id,data); mc.drawLine(x+25,y+15,z,x+29,y+19,z,id,data); mc.drawLine(x+21,y+19,z,x+21,y+32,z,id,data); mc.drawLine(x+29,y+19,z,x+29,y+32,z,id,data); mc.drawLine(x+8,y+19,z,x+19,y+30,z,id,data); mc.drawLine(x+42,y+19,z,x+31,y+30,z,id,data); mc.drawLine(x+19,y+30,z,x+7,y+42,z,id,data); mc.drawLine(x+31,y+30,z,x+43,y+42,z,id,data); mc.drawLine(x+21,y+32,z,x+25,y+36,z,id,data); mc.drawLine(x+29,y+32,z,x+25,y+36,z,id,data); mc.drawLine(x+6,y+35,z,x+0,y+41,z,id,data); mc.drawLine(x+44,y+35,z,x+50,y+41,z,id,data); mc.drawLine(x+0,y+41,z,x+9,y+50,z,id,data); mc.drawLine(x+50,y+41,z,x+41,y+50,z,id,data); mc.drawLine(x+10,y+39,z,x+16,y+45,z,id,data); mc.drawLine(x+7,y+42,z,x+13,y+48,z,id,data); mc.drawLine(x+15,y+46,z,x+13,y+48,z,id,data); mc.drawLine(x+25,y+40,z,x+15,y+50,z,id,data); mc.drawLine(x+25,y+40,z,x+35,y+50,z,id,data); mc.drawLine(x+40,y+39,z,x+34,y+45,z,id,data); mc.drawLine(x+34,y+45,z,x+37,y+48,z,id,data); mc.drawLine(x+43,y+42,z,x+37,y+48,z,id,data); mc.drawLine(x+0,y+10,z,x+6,y+16,z,id,data); mc.drawLine(x+50,y+10,z,x+44,y+16,z,id,data); } void no1(int x,int y,int z,int id,int data){ id=24,data=1; mc.fillBlocks(z,y,x,z+50,y+50,z,id,data); id=179,data=1; mc.drawLine(z,y+10,x,z+10,y,x,id,data); mc.drawLine(z+40,y,x,z+50,y+10,x,id,data); mc.drawLine(z+21,y,x,z+21,y+12,x,id,data); mc.drawLine(z+29,y,x,z+29,y+12,x,id,data); mc.drawLine(z+15,y+4,x,z+7,y+12,x,id,data); mc.drawLine(z+35,y+4,x,z+43,y+12,x,id,data); mc.drawLine(z+15,y+4,x,z+19,y+8,x,id,data); mc.drawLine(z+35,y+4,x,z+31,y+8,x,id,data); mc.drawLine(z+19,y+8,x,z+8,y+19,x,id,data); mc.drawLine(z+31,y+8,x,z+42,y+19,x,id,data); mc.drawLine(z+7,y+12,x,z+11,y+16,x,id,data); mc.drawLine(z+43,y+12,x,z+39,y+16,x,id,data); mc.drawLine(z+6,y+16,x,z+6,y+35,x,id,data); mc.drawLine(z+44,y+16,x,z+44,y+35,x,id,data); mc.drawLine(z+25,y+8,x,z+22,y+11,x,id,data); mc.drawLine(z+25,y+8,x,z+28,y+11,x,id,data); mc.setBlock(z+25,y+7,x,id,data); mc.drawLine(z+25,y+15,x,z+21,y+19,x,id,data); mc.drawLine(z+25,y+15,x,z+29,y+19,x,id,data); mc.drawLine(z+21,y+19,x,z+21,y+32,x,id,data); mc.drawLine(z+29,y+19,x,z+29,y+32,x,id,data); mc.drawLine(z+8,y+19,x,z+19,y+30,x,id,data); mc.drawLine(z+42,y+19,x,z+31,y+30,x,id,data); mc.drawLine(z+19,y+30,x,z+7,y+42,x,id,data); mc.drawLine(z+31,y+30,x,z+43,y+42,x,id,data); mc.drawLine(z+21,y+32,x,z+25,y+36,x,id,data); mc.drawLine(z+29,y+32,x,z+25,y+36,x,id,data); mc.drawLine(z+6,y+35,x,z+0,y+41,x,id,data); mc.drawLine(z+44,y+35,x,z+50,y+41,x,id,data); mc.drawLine(z+0,y+41,x,z+9,y+50,x,id,data); mc.drawLine(z+50,y+41,x,z+41,y+50,x,id,data); mc.drawLine(z+10,y+39,x,z+16,y+45,x,id,data); mc.drawLine(z+7,y+42,x,z+13,y+48,x,id,data); mc.drawLine(z+15,y+46,x,z+13,y+48,x,id,data); mc.drawLine(z+25,y+40,x,z+15,y+50,x,id,data); mc.drawLine(z+25,y+40,x,z+35,y+50,x,id,data); mc.drawLine(z+40,y+39,x,z+34,y+45,x,id,data); mc.drawLine(z+34,y+45,x,z+37,y+48,x,id,data); mc.drawLine(z+43,y+42,x,z+37,y+48,x,id,data); mc.drawLine(z+0,y+10,x,z+6,y+16,x,id,data); mc.drawLine(z+50,y+10,x,z+44,y+16,x,id,data); } int main() { bool con=mc.ConnectMinecraft("zk","868d8493d5f04d0f869ba1e24c863cdd"); if(!con){ cout<<"连接失败"; } mc.setPlayerFly("guoliheng"); int x,y,z,id,data; //d cin>>x>>y>>z; no1(x,y,z,id,data); no1(x,y,z+50,id,data); no1(x,y,z,id,data); return 0; }