#include <bits/stdc++.h> #include "minecraft.h" #include <Windows.h> using namespace std; TxMinecraft mc; int id = 159,data = 14; /*struct Block{ int x,y,z,id,data,_x,_y,_z; void b(TxMinecraft mc){ mc.setBlock(_x+x,_y+y,_z+z,id,data); } };*/ void a(int x,int y,int z){ mc.drawLine(x+10,y,z,x,y+10,z,id,data); mc.drawLine(x+1,y+11,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+1,y+42,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+8,y+13,z,x+10,y+15,z,id,data); mc.drawLine(x+16,y+5,z,x+18,y+7,z,id,data); mc.drawLine(x+19,y+8,z,x+8,y+19,z,id,data); mc.drawLine(x+9,y+20,z,x+19,y+30,z,id,data); mc.drawLine(x+18,y+31,z,x+7,y+42,z,id,data); mc.drawLine(x+11,y+40,z,x+16,y+45,z,id,data); mc.drawLine(x+15,y+46,z,x+14,y+47,z,id,data); mc.drawLine(x+8,y+43,z,x+13,y+48,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+22,y+11,z,x+25,y+8,z,id,data); mc.drawLine(x+26,y+9,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+22,y+18,z,id,data); mc.drawLine(x+26,y+16,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+22,y+33,z,x+25,y+36,z,id,data); mc.drawLine(x+26,y+35,z,x+28,y+33,z,id,data); mc.drawLine(x+15,y+50,z,x+25,y+40,z,id,data); mc.drawLine(x+26,y+41,z,x+35,y+50,z,id,data); mc.drawLine(x+40,y,z,x+50,y+10,z,id,data); mc.drawLine(x+49,y+11,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+45,y+36,z,x+50,y+41,z,id,data); mc.drawLine(x+49,y+42,z,x+41,y+50,z,id,data); mc.drawLine(x+35,y+4,z,x+43,y+12,z,id,data); mc.drawLine(x+34,y+5,z,x+31,y+8,z,id,data); mc.drawLine(x+32,y+9,z,x+42,y+19,z,id,data); mc.drawLine(x+42,y+13,z,x+40,y+15,z,id,data); mc.drawLine(x+41,y+20,z,x+31,y+30,z,id,data); mc.drawLine(x+32,y+31,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+35,y+46,z,x+36,y+47,z,id,data); mc.drawLine(x+42,y+43,z,x+37,y+48,z,id,data); } int main() { bool con = mc.ConnectMinecraft("zk","4cd7d6e558c943c397a3a5243fa78e19"); if(!con){ cout<<"连接失败"; } mc.setPlayerFly("wangyihang"); int x,y,z; //Block list[500]; //Block a; mc.fillBlocks(x,y,z,x+50,y+50,z+50,24,1); cout<<"请输入 X Y Z 坐标:"; cin>>x>>y>>z; a(x,y+1,z); a(x,y+1,z+50); return 0; }
标签:15,mc,神殿,drawLine,沙漠,42,data,id From: https://www.cnblogs.com/wangyihang-xh/p/17536005.html