首页 > 其他分享 >钟楼

钟楼

时间:2023-03-18 18:44:06浏览次数:33  
标签:钟楼 mc 19 int drawLine data id

#include <iostream>
#include "minecraft.h"
using namespace std;
TxMinecraft mc;
void no1(int x,int y,int z){
    int id,data;
    id=98;data=0;
    //台阶
    id=98;data=0;
    mc.fillBlocks(x+5,y,z,x+10,y+5,z+1,id,data);
    mc.drawLine(x+5,y,z,x+10,y+6,z+1,109,0);
    
    mc.fillBlocks(x+1,y,z+5,x+1,y+5,z+15,id,data);
    mc.drawLine(x+1,y,z+5,x+1,y+6,z+15,109,0);
    
    mc.fillBlocks(x+19,y,z+5,x+19,y+5,z+15,id,data);
    mc.drawLine(x+19,y,z+5,x+15,y+6,z+1,109,0);
    
    mc.fillBlocks(x+5,y,z+19,x+15,y+5,z+19,id,data);
    mc.drawLine(x+5,y,z+19,x+15,y+6,z+19,109,0);
}
void liu(int x,int y,int z){
    int id,data;
    id=98;data=0;
    mc.drawLine(x,y-1,z,x+5,y-1,z,id,data);
    mc.drawLine(x,y-1,z,x,y-1,z+5,id,data);
    mc.drawLine(x+5,y-1,z,x+5,y-1,z+5,id,data);
    mc.drawLine(x,y-1,z+5,x+5,y-1,z+5,id,data);
}
void no2(int x,int y,int z){
        int id,data;
    id=98;data=0;
}
int main(int argc, char** argv) {
    bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","08bd17c1ea594f2684182fd956c2d172");
    if(!con){
        cout<<"失败";
        return 0;
    }
    mc.setPlayerFly("fushuxuan",true);
    int x,y,z,id,data;
    cout<<"坐标";
    cin>>x>>y>>z;
    liu(x,y,z);
    liu(x+9,y,z);
    liu(x,y,z+9);
    liu(x+9,y,z+9);
    no1(x,y,z);
    return 0;
}

 

标签:钟楼,mc,19,int,drawLine,data,id
From: https://www.cnblogs.com/fushuxuan/p/17231470.html

相关文章