#include <bits/stdc++.h> #include "minecraft.h" #include <Windows.h> using namespace std; TxMinecraft mc; int main() { bool con = mc.ConnectMinecraft("zk","4cd7d6e558c943c397a3a5243fa78e19"); if(!con){ cout<<"连接失败"; } mc.setPlayerFly("wangyihang"); int x = 852,y = 78,z = 936,id = 251,data; mc.fillBlocks(x-10,y-5,z,x+30,y+35,z,0,0); //黄色 data = 4; mc.drawLine(x+10,y+22,z,x+10,y+24,z,id,data); mc.drawLine(x+11,y+24,z,x+11,y+25,z,id,data); mc.setBlock(x+23,y+28,z,id,data); //深蓝色 data = 11; mc.drawLine(x+18,y+19,z,x+19,y+19,z,id,data); mc.drawLine(x+17,y+20,z,x+20,y+20,z,id,data); mc.drawLine(x+18,y+21,z,x+21,y+21,z,id,data); mc.drawLine(x+19,y+22,z,x+20,y+22,z,id,data); mc.setBlock(x+20,y+23,z,id,data); mc.drawLine(x+16,y+22,z,x+17,y+22,z,id,data); mc.drawLine(x+16,y+23,z,x+18,y+23,z,id,data); mc.drawLine(x+17,y+24,z,x+18,y+24,z,id,data); mc.setBlock(x+15,y+24,z,id,data); mc.drawLine(x+13,y+25,z,x+16,y+25,z,id,data); mc.drawLine(x+12,y+26,z,x+16,y+26,z,id,data); mc.drawLine(x+12,y+27,z,x+14,y+27,z,id,data); mc.drawLine(x+9,y+26,z,x+10,y+26,z,id,data); mc.drawLine(x+9,y+27,z,x+10,y+27,z,id,data); mc.drawLine(x+8,y+28,z,x+10,y+28,z,id,data); mc.drawLine(x+6,y+26,z,x+7,y+26,z,id,data); mc.drawLine(x+5,y+27,z,x+7,y+27,z,id,data); mc.drawLine(x+4,y+28,z,x+6,y+28,z,id,data); mc.drawLine(x+4,y+25,z,x+4,y+26,z,id,data); mc.setBlock(x+3,y+27,z,id,data); //红色 data = 14; mc.setBlock(x+18,y+26,z,id,data); mc.setBlock(x+17,y+27,z,id,data); mc.drawLine(x+15,y+28,z,x+16,y+28,z,id,data); mc.drawLine(x+12,y+29,z,x+15,y+29,z,id,data); //粉色 data = 6; mc.setBlock(x+23,y+27,z,id,data); mc.setBlock(x+24,y+28,z,id,data); mc.setBlock(x+22,y+28,z,id,data); mc.setBlock(x+23,y+29,z,id,data); //绿色 data = 5; mc.setBlock(x+17,y+1,z,id,data); mc.setBlock(x+18,y+2,z,id,data); mc.setBlock(x+23,y+7,z,id,data); mc.setBlock(x+1,y+4,z,id,data); mc.drawLine(x+3,y+1,z,x+1,y+3,z,id,data); mc.drawLine(x+9,y+12,z,x+9,y+13,z,id,data); mc.drawLine(x+11,y+9,z,x+11,y+13,z,id,data); mc.setBlock(x+10,y+11,z,id,data); mc.drawLine(x+22,y+8,z,x+22,y+9,z,id,data); //浅蓝色 data = 3; mc.drawLine(x+3,y+3,z,x+3,y+6,z,id,data); mc.drawLine(x+4,y+2,z,x+4,y+8,z,id,data); mc.drawLine(x+5,y+1,z,x+5,y+10,z,id,data); mc.drawLine(x+6,y+1,z,x+6,y+3,z,id,data); mc.drawLine(x+6,y+10,z,x+6,y+11,z,id,data); mc.drawLine(x+7,y+1,z,x+7,y+12,z,id,data); mc.drawLine(x+8,y+1,z,x+8,y+11,z,id,data); mc.drawLine(x+9,y+1,z,x+9,y+9,z,id,data); mc.drawLine(x+10,y+1,z,x+10,y+9,z,id,data); mc.drawLine(x+11,y+1,z,x+11,y+9,z,id,data); mc.drawLine(x+12,y+1,z,x+12,y+11,z,id,data); mc.drawLine(x+13,y+1,z,x+13,y+11,z,id,data); mc.drawLine(x+14,y+1,z,x+14,y+10,z,id,data); mc.drawLine(x+15,y+1,z,x+15,y+8,z,id,data); mc.drawLine(x+16,y+4,z,x+16,y+6,z,id,data); mc.drawLine(x+17,y+3,z,x+17,y+4,z,id,data); //黑色 data = 15; mc.drawLine(x+3,y,z,x+17,y,z,id,data); mc.drawLine(x+2,y+1,z,x+1,y+2,z,id,data); mc.drawLine(x+4,y+1,z,x+3,y+2,z,id,data); mc.drawLine(x,y+3,z,x,y+4,z,id,data); mc.drawLine(x+2,y+3,z,x+2,y+6,z,id,data); mc.setBlock(x+1,y+5,z,id,data); mc.drawLine(x+3,y+7,z,x+3,y+8,z,id,data); mc.drawLine(x+4,y+9,z,x+4,y+10,z,id,data); mc.drawLine(x+5,y+11,z,x+7,y+13,z,id,data); mc.drawLine(x+7,y+3,z,x+11,y+3,z,id,data); mc.drawLine(x+6,y+4,z,x+6,y+9,z,id,data); mc.drawLine(x+7,y+10,z,x+11,y+10,z,id,data); mc.drawLine(x+12,y+4,z,x+12,y+9,z,id,data); mc.drawLine(x+9,y+6,z,x+8,y+7,z,id,data); mc.setBlock(x+10,y+7,z,id,data); mc.drawLine(x+16,y+1,z,x+16,y+3,z,id,data); mc.drawLine(x+17,y+2,z,x+15,y+4,z,id,data); mc.drawLine(x+18,y+1,z,x+19,y+2,z,id,data); mc.drawLine(x+19,y+3,z,x+18,y+4,z,id,data); mc.drawLine(x+17,y+5,z,x+17,y+6,z,id,data); mc.drawLine(x+16,y+7,z,x+16,y+8,z,id,data); mc.drawLine(x+15,y+9,z,x+15,y+10,z,id,data); mc.setBlock(x+14,y+11,z,id,data); mc.drawLine(x+12,y+12,z,x+13,y+12,z,id,data); mc.setBlock(x+12,y+13,z,id,data); mc.setBlock(x+9,y+11,z,id,data); mc.setBlock(x+11,y+11,z,id,data); mc.drawLine(x+10,y+12,z,x+10,y+13,z,id,data); mc.drawLine(x+8,y+12,z,x+8,y+15,z,id,data); mc.setBlock(x+9,y+14,z,id,data); mc.drawLine(x+6,y+15,z,x+7,y+15,z,id,data); mc.drawLine(x+5,y+16,z,x+4,y+17,z,id,data); mc.drawLine(x+3,y+18,z,x+4,y+19,z,id,data); mc.drawLine(x+4,y+20,z,x+4,y+24,z,id,data); mc.drawLine(x+3,y+25,z,x+3,y+26,z,id,data); mc.drawLine(x+2,y+26,z,x+2,y+27,z,id,data); mc.drawLine(x+3,y+28,z,x+5,y+26,z,id,data); mc.drawLine(x+4,y+29,z,x+11,y+29,z,id,data); mc.setBlock(x+7,y+28,z,id,data); mc.drawLine(x+8,y+26,z,x+8,y+27,z,id,data); mc.drawLine(x+5,y+25,z,x+10,y+25,z,id,data); mc.drawLine(x+11,y+26,z,x+11,y+28,z,id,data); mc.setBlock(x+7,y+23,z,id,data); mc.setBlock(x+6,y+22,z,id,data); mc.drawLine(x+7,y+20,z,x+7,y+21,z,id,data); mc.setBlock(x+9,y+18,z,id,data); mc.drawLine(x+9,y+21,z,x+9,y+24,z,id,data); mc.drawLine(x+11,y+22,z,x+11,y+23,z,id,data); mc.setBlock(x+10,y+21,z,id,data); mc.drawLine(x+12,y+24,z,x+12,y+25,z,id,data); mc.drawLine(x+13,y+24,z,x+14,y+24,z,id,data); mc.drawLine(x+12,y+28,z,x+14,y+28,z,id,data); mc.drawLine(x+12,y+30,z,x+16,y+30,z,id,data); mc.drawLine(x+16,y+29,z,x+19,y+26,z,id,data); mc.drawLine(x+15,y+27,z,x+16,y+27,z,id,data); mc.drawLine(x+17,y+25,z,x+17,y+26,z,id,data); mc.drawLine(x+18,y+25,z,x+19,y+25,z,id,data); mc.drawLine(x+19,y+23,z,x+19,y+24,z,id,data); mc.drawLine(x+20,y+24,z,x+21,y+23,z,id,data); mc.drawLine(x+13,y+24,z,x+14,y+24,z,id,data); mc.drawLine(x+14,y+23,z,x+15,y+23,z,id,data); mc.drawLine(x+15,y+22,z,x+14,y+21,z,id,data); mc.drawLine(x+13,y+19,z,x+13,y+20,z,id,data); mc.setBlock(x+13,y+22,z,id,data); mc.drawLine(x+16,y+21,z,x+17,y+21,z,id,data); mc.drawLine(x+16,y+20,z,x+16,y+19,z,id,data); mc.setBlock(x+16,y+24,z,id,data); mc.setBlock(x+18,y+22,z,id,data); mc.drawLine(x+21,y+22,z,x+22,y+21,z,id,data); mc.drawLine(x+21,y+20,z,x+20,y+19,z,id,data); mc.drawLine(x+16,y+19,z,x+17,y+19,z,id,data); mc.drawLine(x+17,y+18,z,x+19,y+18,z,id,data); mc.drawLine(x+16,y+13,z,x+16,y+14,z,id,data); mc.drawLine(x+17,y+10,z,x+17,y+14,z,id,data); mc.drawLine(x+18,y+9,z,x+18,y+10,z,id,data); mc.setBlock(x+19,y+8,z,id,data); mc.drawLine(x+20,y+7,z,x+22,y+7,z,id,data); mc.drawLine(x+21,y+8,z,x+21,y+9,z,id,data); mc.drawLine(x+23,y+6,z,x+24,y+6,z,id,data); mc.drawLine(x+24,y+7,z,x+24,y+8,z,id,data); mc.drawLine(x+23,y+8,z,x+23,y+9,z,id,data); mc.drawLine(x+23,y+9,z,x+25,y+9,z,id,data); mc.setBlock(x+22,y+10,z,id,data); mc.setBlock(x+17,y+31,z,id,data); mc.setBlock(x+21,y+31,z,id,data); mc.drawLine(x+20,y+32,z,x+18,y+32,z,id,data); mc.drawLine(x+22,y+30,z,x+24,y+30,z,id,data); mc.drawLine(x+22,y+26,z,x+24,y+26,z,id,data); mc.drawLine(x+21,y+29,z,x+21,y+27,z,id,data); mc.drawLine(x+25,y+29,z,x+25,y+27,z,id,data); mc.setBlock(x+22,y+27,z,id,data); mc.setBlock(x+22,y+29,z,id,data); mc.setBlock(x+24,y+27,z,id,data); mc.setBlock(x+24,y+29,z,id,data); return 0; }
标签:std,TxMinecraft,mc,111,include,con From: https://www.cnblogs.com/wangyihang-xh/p/18061768