#include <iostream> #include <string> #include "minecraft.h" using namespace std; TxMinecraft mc; int x,y,z,id,data; void a(){ //正方形 mc.fillBlocks(x,y-1,z,x+5,y-1,z+5,98,0); mc.fillBlocks(x+1,y-1,z+1,x+4,y-1,z+4,0,0); mc.fillBlocks(x,y-1,z+15,x+5,y-1,z+5+15,98,0); mc.fillBlocks(x+1,y-1,z+1+15,x+4,y-1,z+4+15,0,0); mc.fillBlocks(x+15,y-1,z,x+5+15,y-1,z+5,98,0); mc.fillBlocks(x+1+15,y-1,z+1,x+4+15,y-1,z+4,0,0); mc.fillBlocks(x+15,y-1,z+15,x+5+15,y-1,z+5+15,98,0); mc.fillBlocks(x+1+15,y-1,z+1+15,x+4+15,y-1,z+4+15,0,0); //边 mc.fillBlocks(x+1,y,z+5,x+1,y+2,z+15,98,0); mc.fillBlocks(x+1,y+3,z+5,x+1,y+3,z+15,109,0); mc.fillBlocks(x+18,y,z+5,x+18,y+2,z+15,98,0); mc.fillBlocks(x+18,y+3,z+5,x+18,y+3,z+15,109,1); mc.fillBlocks(x+5,y,z+1,x+15,y+2,z+1,98,0); mc.fillBlocks(x+5,y+3,z+1,x+15,y+3,z+1,109,2); mc.fillBlocks(x+5,y,z+18,x+15,y+2,z+18,98,0); mc.fillBlocks(x+5,y+3,z+18,x+15,y+3,z+18,109,3); } void b(){ mc.fillBlocks(x,y,z,x+5,y+1,z,98,0); mc.fillBlocks(x,y,z+20,x+5,y+1,z+20,98,0); mc.fillBlocks(x+15,y,z,x+5+15,y+1,z,98,0); mc.fillBlocks(x+20,y,z,x+20,y+1,z+5,98,0); mc.fillBlocks(x+15,y,z+20,x+5+15,y+1,z+20,98,0); mc.fillBlocks(x+20,y,z+15,x+20,y+1,z+5+15,98,0); mc.fillBlocks(x,y,z,x,y+1,z+5,98,0); mc.fillBlocks(x,y,z+15,x,y+1,z+5+15,98,0); } int main() { bool com=mc.ConnectMinecraft("zk","919b005179e840e1bf78fef437b2f298"); if(!com){ cout<<"连接失败"; } bool fly=true; mc.setPlayerFly("陈若麟",fly); cin>>x>>y>>z; mc.fillBlocks(x,y,z,x+50,y+50,z+50,0,0); a(); b(); return 0; }
标签:钟楼,15,mc,18,c++,fillBlocks,98,20 From: https://www.cnblogs.com/As10016/p/17231461.html