#include <iostream> #include <string> #include <windows.h> #include "minecraft.h" using namespace std; TxMinecraft mc; int main(int argc, char** argv) { bool con = mc.ConnectMinecraft("zk.makeblock.net.cn","4cd7d6e558c943c397a3a5243fa78e19") ; if(!con){ cout<<"连接失败"<<endl; return 1; } cout<<"连接成功"<<endl; Sleep(1000); //cout<<"请输入X Y Z坐标:"; int x = -300; int y = 66; int z = 200; int id = 251; int data = 15; //cin>>x>>y>>z; mc.fillOffsetBlocks(x+4,y,z,x+11,y+32,z+5,id,data); mc.fillOffsetBlocks(x,y+12,z,x+3,y+24,z+5,id,data); mc.fillOffsetBlocks(x+12,y+12,z,x+15,y+24,z+5,id,data); data = 0; mc.fillOffsetBlocks(x+8,y+26,z,x+10,y+28,z+5,id,data); return 0; }
标签:12,mc,皮肤,C++,雕像,fillOffsetBlocks,include,data,id From: https://www.cnblogs.com/wangyihang/p/16705623.html