#include <iostream> #include "Windows.h" #include "minecraft.h" using namespace std; TxMinecraft mc; int x,y,z; int id,data; using namespace std; void one(){ //1 id=114,data=4; mc.setBlock(x,y,z+1,id,data); id=251,data=15; mc.drawLine(x+1,y,z+1,x+2,y,z,id,data); id=44,data=0; mc.setBlock(x+3,y,z+1,id,data); id=251,data=15; mc.drawLine(x+4,y,z+1,x+5,y,z,id,data); id=44,data=0; mc.setBlock(x+6,y,z+1,id,data); id=251,data=15; mc.drawLine(x+7,y,z+1,x+8,y,z,id,data); id=114,data=5; mc.setBlock(x+9,y,z+1,id,data); //2 id=167,data=6; mc.setBlock(x-1,y+1,z+1,id,data); id=1,data=0; mc.setBlock(x,y+1,z+1,id,data); id=67,data=6; mc.drawLine(x+1,y+1,z+1,x+7,y+1,z+1,id,data); id=67,data=15; mc.setBlock(x+8,y+1,z+1,id,data); id=251,data=15; mc.setBlock(x+9,y+1,z+1,id,data); id=65,data=4; mc.setBlock(x+10,y+1,z+1,id,data); //3 id=151,data=0; mc.drawLine(x,y+2,z+1,x+1,y+2,z+1,id,data); id=167,data=0; mc.drawLine(x+2,y+2,z+1,x+3,y+2,z+1,id,data); id=67,data=0; mc.setBlock(x+4,y+2,z+1,id,data); id=67,data=2; mc.drawLine(x+5,y+2,z+1,x+6,y+2,z+1,id,data); id=44,data=0; mc.drawLine(x+7,y+2,z+1,x+8,y+2,z+1,id,data); id=167,data=0; mc.setBlock(x+9,y+2,z+1,id,data); //4 id=139,data=0; mc.drawLine(x+3,y+3,z+1,x+5,y+3,z+1,id,data); } void two(){ id=101,data=0; mc.drawLine(x,y,z,x+9,y,z,id,data); id=143,data=4; mc.drawLine(x+1,y+1,z,x+2,y+1,z,id,data); mc.drawLine(x+4,y,z,x+5,y,z,id,data); mc.drawLine(x+7,y,z,x+8,y,z,id,data); } void three(){ //1 id=44,data=8; mc.drawLine(x,y,z,x+9,y,z+2,id,data); id=1,data=0; mc.setBlock(x+3,y,z+2,id,data); id=1,data=0; mc.setBlock(x+6,y,z+2,id,data); id=44,data=8; mc.setBlock(x+9,y,z+2,id,data); //2 id=139,data=1; mc.setBlock(x-1,y+1,z+2,id,data); id=1,data=0; mc.setBlock(x,y+1,z+2,id,data); id=1,data=0; mc.setBlock(x+9,y+1,z+2,id,data); id=101,data=0; mc.setBlock(x+10,y+1,z+2,id,data); //3 id=139,data=1; mc.setBlock(x-1,y+2,z+2,id,data); id=67,data=2; mc.drawLine(x+1,y+2,z+2,x+2,y+2,z+2,id,data); id=44,data=0; mc.setBlock(x+3,y+2,z+2,id,data); id=1,data=0; mc.setBlock(x+4,y+2,z+2,id,data); id=44,data=8; mc.drawLine(x+5,y+2,z+2,x+6,y+2,z+2,id,data); id=67,data=1; mc.setBlock(x+7,y+2,z+2,id,data); id=44,data=1; mc.setBlock(x+8,y+2,z+2,id,data); id=178,data=1; mc.setBlock(x+9,y+2,z+2,id,data); //4 id=139,data=1; mc.setBlock(x+3,y+3,z+2,id,data); id=1,data=0; mc.drawLine(x+4,y+3,z+2,x+6,y+3,z+2,id,data); id=139,data=1; mc.setBlock(x+7,y+3,z+2,id,data); //5 id=44,data=0; mc.setBlock(x+4,y+4,z+2,id,data); id=171,data=8; mc.drawLine(x+5,y+4,z+2,x+6,y+4,z+2,id,data); } void four(){ id=44,data=8; mc.setBlock(x-1,y,z+3,id,data); id=1,data=0; mc.setBlock(x+2,y,z+3,id,data); id=1,data=0; mc.setBlock(x+5,y,z+3,id,data); } int main(){ bool con=mc.ConnectMinecraft("zk","b3dee25f95c44697ae36ffe00d75f40b"); if(!con){ cout<<"连接失败"; return 0; } bool fly=true; mc.setPlayerFly("zhangzhanqian",fly); cin>>x>>y>>z; return 0; }
标签:mc,drawLine,44,setBlock,data,id From: https://www.cnblogs.com/boyeyuan/p/18047833