首页 > 其他分享 >1

1

时间:2024-02-20 15:55:06浏览次数:13  
标签: std TxMinecraft main mc include con

#include <bits/stdc++.h>
#include "minecraft.h"
#include <Windows.h>
using namespace std;
TxMinecraft mc;
int main() {
    bool con = mc.ConnectMinecraft("zk","b3dee25f95c44697ae36ffe00d75f40b");
    if(!con){
        cout<<"连接失败";
    }
    mc.setPlayerFly("zhangzhanqian");
    int x=-110,y=59,z=483;
    int id=153,data=15;
    //左眼 
    mc.drawLine(x,y,z,x+1,y,z,id,data);
    mc.drawLine(x+1,y,z,x+1,y+5,z,id,data);
    mc.drawLine(x,y+5,z,x,y+9,z,id,data);
    mc.drawLine(x-1,y+7,z,x+1,y+7,z,id,data);
    mc.drawLine(x,y+9,z,x+2,y+9,z,id,data);
    mc.setBlock(x+2,y+2,z,id,data);
    mc.setBlock(x+2,y+4,z,id,data);
    mc.drawLine(x+3,y+1,z,x+3,y+4,z,id,data);
    mc.setBlock(x-1,y+1,z,id,data);
    mc.setBlock(x-2,y+2,z,id,data);
    mc.drawLine(x-3,y+3,z,x-3,y+4,z,id,data);
    mc.setBlock(x-4,y+4,z,id,data);
    mc.drawLine(x-5,y+5,z,x-5,y+6,z,id,data);
    mc.setBlock(x-6,y+7,z,id,data);
    mc.drawLine(x-7,y+8,z,x-7,y+9,z,id,data);
    mc.drawLine(x-8,y+10,z,x-8,y+13,z,id,data);
    mc.setBlock(x-7,y+14,z,id,data);
    mc.drawLine(x-6,y+15,z,x-6,y+18,z,id,data);
    mc.drawLine(x-6,y+11,z,x-6,y+13,z,id,data);
    mc.drawLine(x-5,y+10,z,x-5,y+12,z,id,data);
    mc.drawLine(x-4,y+11,z,x-4,y+13,z,id,data);
    mc.drawLine(x-7,y+19,z,x-7,y+20,z,id,data);
    mc.drawLine(x-8,y+21,z,x-8,y+22,z,id,data);
    mc.drawLine(x-9,y+23,z,x-9,y+24,z,id,data);
    mc.drawLine(x-10,y+25,z,x-8,y+25,z,id,data);
    mc.setBlock(x-10,y+26,z,id,data);	
    mc.setBlock(x-8,y+26,z,id,data);
    mc.setBlock(x-10,y+26,z,id,data);	
    mc.setBlock(x-9,y+26,z,id,data);
    mc.drawLine(x,y,z,x+8,y+8,z,id,data);
    return 0;
}

  

标签:,std,TxMinecraft,main,mc,include,con
From: https://www.cnblogs.com/boyeyuan/p/18023303

相关文章