#include <iostream> #include "minecraft.h" #include "Windows.h" TxMinecraft mc; using namespace std; int X,Y,Z,id=0,data=0; int a=0; void chu_shi_hua() { X=49825,Y=4,Z=50148; } void jiang_xiao_bai_hongse() { chu_shi_hua(); mc.fillBlocks(X+12,Y+29,Z,X+15,Y+0,Z,id+251,data+14); mc.setBlock(X+15,Y+28,Z+0,id+251,data+14); mc.setBlock(X+16,Y+28,Z+0,id+251,data+14); mc.setBlock(X+17,Y+28,Z+0,id+251,data+14); mc.setBlock(X+18,Y+28,Z+0,id+251,data+14); } void jiang_xiao_bai_lvse() { chu_shi_hua(); mc.setBlock(X+10,Y+11,Z+0,id+251,data+5); mc.setBlock(X+9,Y+12,Z+0,id+251,data+5); mc.setBlock(X+11,Y+12,Z+0,id+251,data+5); mc.setBlock(X+9,Y+13,Z+0,id+251,data+5); mc.setBlock(X+11,Y+13,Z+0,id+251,data+5); mc.setBlock(X+23,Y+7,Z+0,id+251,data+5); mc.setBlock(X+22,Y+8,Z+0,id+251,data+5); mc.setBlock(X+22,Y+9,Z+0,id+251,data+5); mc.setBlock(X+17,Y+1,Z+0,id+251,data+5); mc.setBlock(X+18,Y+2,Z+0,id+251,data+5); mc.setBlock(X+3,Y+1,Z+0,id+251,data+5); mc.setBlock(X+2,Y+2,Z+0,id+251,data+5); mc.setBlock(X+1,Y+3,Z+0,id+251,data+5); mc.setBlock(X+1,Y+4,Z+0,id+251,data+5); } int main() { bool con=mc.ConnectMinecraft("zk","2839fa7ac28b4f7d8952cc46c1f179ec"); if(!con) { cout<<"失败"; } bool fly=true; mc.setPlayerFly("wangshuo",fly); jiang_xiao_bai(); return 0; }
标签:14,mc,江小白,绿色,setBlock,红色,251,data,id From: https://www.cnblogs.com/w6826301/p/18049632