#include <iostream>
#include "minecraft.h"
#include <windows.h>
using namespace std;
TxMinecraft mc;
int x=-256,y=150,z=223;
void xin(int id,int data,int z1){
mc.drawLine(x+1,y+7,z+z1,x+1,y+8,z+z1,id,data);
mc.drawLine(x+7,y+7,z+z1,x+7,y+8,z+z1,id,data);
mc.drawLine(x+2,y+6,z+z1,x+2,y+9,z+z1,id,data);
mc.drawLine(x+6,y+6,z+z1,x+6,y+9,z+z1,id,data);
mc.drawLine(x+3,y+5,z+z1,x+3,y+8,z+z1,id,data);
mc.drawLine(x+5,y+5,z+z1,x+5,y+8,z+z1,id,data);
mc.drawLine(x+4,y+4,z+z1,x+4,y+7,z+z1,id,data);
} int main(int argc, char** argv) {
bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","a9d44e758f6e4cf8b2da2624156f24d3");
if(!con){
cout<<"连接失败";
return 0;
}
cout<<"连接成功"<<endl;
mc.setPlayerFly("wangyueshuo");
//cin>>x>>y>>z; //杯身
mc.fillBlocks(x,y,z,x+8,y+11,z+8,251,0);
mc.fillBlocks(x+1,y+1,z+1,x+7,y+11,z+7,0,0);
//把手
mc.fillBlocks(x+9,y+3,z+3,x+12,y+9,z+5,251,0);
mc.fillBlocks(x+9,y+4,z+3,x+11,y+8,z+5,0,0);
//水位
mc.fillBlocks(x+1,y+10,z+1,x+7,y+10,z+7,5,0); //心形图案
xin(0,0,0);
xin(95,2,1);
xin(0,0,8);
xin(95,2,7);
Sleep(1000);
return 0;
}

  

最新文章

  1. 【codevs1515】 跳
  2. poj 3680 Intervals
  3. 揭秘PHP匿名函数
  4. Mysql CPU占用90%
  5. hadoop小试
  6. java07循环结构
  7. Unity3D中C#编写脚本
  8. Guice 学习(六)使用Provider注入服务( Provider Inject Service)
  9. 数据结构——队列(Queues)
  10. Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be
  11. java中级或者高级面试题分享
  12. JDK的动态代理-----为接口进行代理
  13. 关于excel中的查找
  14. rsync远程同步的基本配置与使用
  15. 使用redux简单的实现加法运算(简单的状态改变)
  16. ALGO-30_蓝桥杯_算法训练_入学考试DP)
  17. Mac下配置Apache服务器
  18. redis实战笔记(2)-第2章 使用 Redis构建Web应用
  19. 在JavaScript中重写jQuery对象的方法
  20. WCF常用绑定选择

热门文章

  1. P1005 [NOIP2007 提高组] 矩阵取数游戏
  2. JS按空格和换行或者其他字符进行切割形成数组
  3. 动力节点—day04
  4. dapr入门与本地托管模式尝试
  5. 2023.1.16[模板]BSGS/exBSGS
  6. wsl ubuntu vscode 安装 Fira Code
  7. 关于异常处理的return
  8. Mybatis的逆向工程与延迟加载
  9. 三天吃透Spring面试八股文(最新整理)
  10. 【译】.NET 7 中的性能改进(五)