#include <iostream> #include <string> #include "minecraft.h" using namespace std; TxMinecraft mc; void one(int x,int y,int z){ int id,data; id=179;data=1; mc.drawLine(x+10,y,z,x,y+10,z,id,data); mc.drawLine(x,y+10,z,x+5,y+15,z,id,data); mc.drawLine(x+6,y+16,z,x+6,y+35,z,id,data); mc.drawLine(x+5,y+36,z,x,y+41,z,id,data); mc.drawLine(x,y+41,z,x+9,y+50,z,id,data); mc.drawLine(x+15,y+4,z,x+7,y+12,z,id,data); mc.drawLine(x+15,y+4,z,x+19,y+8,z,id,data); mc.drawLine(x+7,y+12,z,x+11,y+16,z,id,data); mc.drawLine(x+19,y+8,z,x+9,y+19,z,id,data); mc.drawLine(x+9,y+19,z,x+19,y+30,z,id,data); mc.drawLine(x+19,y+30,z,x+7,y+42,z,id,data); mc.drawLine(x+11,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+16,y+45,z,x+13,y+48,z,id,data); mc.drawLine(x+21,y,z,x+21,y+12,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+29,y,z,x+29,y+12,z,id,data); mc.drawLine(x+25,y+15,z,x+22,y+18,z,id,data); mc.drawLine(x+25,y+15,z,x+28,y+18,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+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+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+35,y+4,z,x+31,y+8,z,id,data); mc.drawLine(x+35,y+4,z,x+43,y+12,z,id,data); mc.drawLine(x+43,y+12,z,x+40,y+15,z,id,data); mc.drawLine(x+31,y+8,z,x+42,y+19,z,id,data); mc.drawLine(x+42,y+19,z,x+31,y+30,z,id,data); mc.drawLine(x+31,y+30,z,x+43,y+42,z,id,data); mc.drawLine(x+39,y+40,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+40,y,z,x+50,y+10,z,id,data); mc.drawLine(x+50,y+10,z,x+45,y+15,z,id,data); mc.drawLine(x+44,y+16,z,x+44,y+35,z,id,data); mc.drawLine(x+44,y+35,z,x+50,y+41,z,id,data); mc.drawLine(x+50,y+41,z,x+41,y+50,z,id,data); //凸 id=98;data=3; y--; mc.drawLine(x-1,y,z,x-1,y+10,z,id,data); mc.drawLine(x+11,y,z,x+2,y+10,z,id,data); mc.drawLine(x+2,y+10,z,x+6,y+15,z,id,data); mc.drawLine(x+7,y+16,z,x+7,y+35,z,id,data); mc.drawLine(x+6,y+36,z,x+1,y+41,z,id,data); mc.drawLine(x+1,y+41,z,x+10,y+50,z,id,data); mc.setBlock(x+13,y+51,z,id,data); mc.setBlock(x+14,y+50,z,id,data); mc.setBlock(x+37,y+51,z,id,data); mc.setBlock(x+36,y+50,z,id,data); mc.setBlock(x+25,y+39,z,id,data); mc.drawLine(x+21,y+33,z,x+25,y+37,z,id,data); mc.drawLine(x+29,y+33,z,x+25,y+37,z,id,data); mc.drawLine(x+20,y+32,z,x+20,y+19,z,id,data); mc.drawLine(x+30,y+32,z,x+30,y+19,z,id,data); mc.drawLine(x+25,y+14,z,x+20,y+19,z,id,data); //空 id=0;data=0; mc.drawLine(x+15,y+5,z,x+8,y+12,z,id,data); mc.drawLine(x+15,y+6,z,x+9,y+12,z,id,data); mc.drawLine(x+16,y+6,z,x+9,y+13,z,id,data); mc.drawLine(x+16,y+7,z,x+10,y+13,z,id,data); } int main(int argc, char** argv) { bool con=mc.ConnectMinecraft("zk","08bd17c1ea594f2684182fd956c2d172"); if(!con){ cout<<"失败"; return 0; } int x,y,z,id,data; mc.fillBlocks(x,y,z,x+50,y+50,z,24,0); mc.fillBlocks(x,y,z,x+50,y+50,z+50,24,0); mc.fillBlocks(x,y,z,x+50,y,z+50,24,0); cout<<"坐标"; cin>>_x>>_y>>_z; return 0; }
标签:25,mc,神殿,drawLine,沙漠,19,data,id From: https://www.cnblogs.com/fushuxuan/p/17536000.html