坦克
#include <iostream> #include "minecraft.h" using namespace std; TxMinecraft mc; int main(int argc, char** argv) { bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","919b005179e840e1bf78fef437b2f298"); if(!con){ cout<<"失败"; return 0; } bool fly=true; mc.setPlayerFly("陈若麟",fly); int x,y,z; cin>>x>>y>>z; //1 mc.drawLine(x+1,y,z,x+8,y,z+1,251,15); mc.setBlock(x+9,y+1,z+1,251,15); mc.setBlock(x,y,z+1,114,4); mc.setBlock(x+9,y,z+1,114,5); mc.setBlock(x+3,y,z+1,44,0); mc.setBlock(x+6,y,z+1,44,0); mc.setBlock(x+10,y+1,z+1,65,4); mc.setBlock(x-1,y+1,z+1,167,6); mc.setBlock(x,y+1,z+1,1,0); mc.setBlock(x+8,y+1,z+1,67,15); mc.setBlock(x+9,y+2,z+1,167,0); mc.setBlock(x+4,y+2,z+1,67,0); mc.drawLine(x+1,y+1,z+1,x+7,y+1,z+1,67,6); mc.drawLine(x+3,y+3,z+1,x+5,y+3,z+1,139,1); mc.drawLine(x+7,y+2,z+1,x+8,y+2,z+1,44,0); mc.drawLine(x+5,y+2,z+1,x+6,y+2,z+1,67,2); mc.drawLine(x+2,y+1,z+1,x+3,y+1,z+1,167,0); mc.drawLine(x+0,y+1,z+1,x+1,y+1,z+1,151,0); //2 mc.drawLine(x,y+1,z,x+9,y+1,z,101,0); mc.drawLine(x+1,y,z,x+2,y,z,143,4); mc.drawLine(x+4,y,z,x+5,y,z,143,4); mc.drawLine(x+7,y,z,x+8,y,z,143,4); //3 mc.setBlock(x,y,z+2,44,8); mc.setBlock(x+9,y,z+2,44,8); mc.setBlock(x+5,y+2,z+2,44,8); mc.setBlock(x+6,y+2,z+2,44,8); mc.setBlock(x+3,y+2,z+2,44,0); mc.setBlock(x+8,y+2,z+2,44,0); mc.setBlock(x+4,y+4,z+2,44,0); mc.setBlock(x+10,y+2,z+2,101,0); mc.setBlock(x+9,y+2,z+2,171,8); mc.setBlock(x+6,y+4,z+2,171,8); mc.setBlock(x+5,y+4,z+2,171,8); mc.setBlock(x+7,y+4,z+2,67,1); mc.setBlock(x+7,y+3,z+2,139,1); mc.setBlock(x+3,y+3,z+2,139,1); mc.setBlock(x-1,y+1,z+2,139,1); mc.setBlock(x-1,y+2,z+2,139,1); mc.setBlock(x+1,y+2,z+2,67,2); mc.setBlock(x+2,y+2,z+2,67,2); mc.setBlock(x+3,y,z+2,1,0); mc.setBlock(x+6,y,z+2,1,0); mc.setBlock(x,y+1,z+2,1,0); mc.setBlock(x+9,y+1,z+2,1,0); mc.drawLine(x+4,y+3,z+2,x+6,y+3,z+2,1,0); mc.setBlock(x+4,y+2,z+2,1,0); //4 mc.drawLine(x+8,y+3,z+3,x+14,y+3,z+3,44,0); mc.drawLine(x-1,y+2,z+3,x+2,y+2,z+3,44,0); mc.setBlock(x+7,y+2,z+3,44,0); mc.setBlock(x-1,y,z+3,44,8); mc.setBlock(x+8,y,z+3,44,8); mc.setBlock(x+4,y+2,z+3,44,8); mc.setBlock(x+5,y+2,z+3,44,8); mc.setBlock(x+9,y+1,z+3,101,0); mc.setBlock(x+14,y+2,z+3,167,8); mc.setBlock(x+8,y+2,z+3,171,8); mc.setBlock(x+5,y+4,z+3,171,8); mc.setBlock(x+7,y+3,z+3,67,1); mc.setBlock(x+2,y,z+3,1,0); mc.setBlock(x+5,y,z+3,1,0); mc.setBlock(x-1,y+1,z+3,1,0); mc.setBlock(x+8,y+1,z+3,1,0); mc.setBlock(x+3,y+2,z+3,1,0); mc.setBlock(x+6,y+2,z+3,1,0); mc.drawLine(x+3,y+3,z+3,x+5,y+3,z+3,1,0); return 0; }