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