首页 > 其他分享 >派大星

派大星

时间:2023-06-17 19:45:29浏览次数:22  
标签:cn mc int 派大星 include con

 

#include <iostream>
#include <string>
#include "Windows.h"
#include "minecraft.h"
TxMinecraft mc;
using namespace std;
int main(int argc, char** argv) {
    bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","868d8493d5f04d0f869ba1e24c863cdd");
    if(!con) {
        cout<<"连接失败"<<endl;
        return 0;
    }
    mc.setPlayerFly("guoliheng");
    string id,data;
    string hl="35,5",hei="251,15",fen="251,6",bai="251,0",fh="35,6",hong="35,2";
    string no1[34][38];
    for(int i=0;i<33;i++){
        no1[i][0]=hei;
    }
    no1[8][1]=hei;
    no1[9][1]=fh;
    no1[10][1]=hei;
    no1[22][1]=hei;
    no1[23][1]=fh;
    no1[24][1]=hei;
    for(int i=6;i<15;i++){
        no1[i][2]=hei;
    }
    for(int i=17;i<27;i++){
        no1[i][2]=hei;
    }
    no1[5][3]=hei;
    no1[6][3]=hong;
    for(int i=7;i<14;i++){
        no1[i][3]=hl;
    }
    no1[14][3]=hei;
    no1[17][3]=hei;
    no1[18][3]=hong;
    for(int i=19;i<26;i++){
        no1[i][3]=hl;
    }
    no1[26][3]=hei;
    no1[27][3]=hei;
    no1[4][4]=hei;
    no1[5][4]=hong;
    for(int i=6;i<26;i++){
        no1[i][4]=hl;
    }
    no1[15][4]=hei;
    no1[16][4]=hei;
    no1[17][4]=hong;
    no1[25][4]=hong;
    no1[26][4]=hong;
    no1[27][4]=hei;
    
    no1[4][5]=hei;
    for(int i=5;i<26;i++){
        no1[i][5]=hl;
    }
    no1[25][5]=hong;
    no1[26][5]=hong;
    no1[27][5]=hong;
    no1[28][5]=hei;
    no1[29][5]=hei;
    
    no1[4][6]=hei;
    for(int i=5;i<29;i++){
        no1[i][6]=hl;
    }
    no1[8][6]=hong;
    no1[9][6]=hong;
    no1[10][6]=hong;
    no1[11][6]=hong;
    no1[25][6]=hong;
    no1[26][6]=hong;
    no1[27][6]=hong;
    no1[29][6]=hei;
    
    no1[4][7]=hei;
    for(int i=5;i<29;i++){
        no1[i][7]=hl;
    }
    no1[7][7]=hong;
    no1[8][7]=hong;
    no1[9][7]=hong;
    no1[10][7]=hong;
    no1[11][7]=hong;
    no1[29][7]=hei;
    
    no1[4][8]=hei;
    for(int i=5;i<29;i++){
        no1[i][8]=hl;
    }
    for(int i=9;i<25;i++){
        no1[i][8]=hei;
    }
    no1[7][8]=hong;
    no1[8][8]=hong;
    no1[29][8]=hei;
    
    no1[4][9]=hei;
    for(int i=5;i<29;i++){
        no1[i][9]=hl;
    }
    for(int i=9;i<25;i++){
        no1[i][9]=fen;
    }
    no1[7][9]=hei;
    no1[8][9]=hei;
    no1[16][9]=hei;
    no1[18][9]=hei;
    no1[25][9]=hei;
    no1[26][9]=hei;
    no1[29][9]=hei;
    
    no1[4][10]=hei;
    no1[5][10]=hl;
    no1[6][10]=hei;
    for(int i=7;i<27;i++){
        no1[i][10]=fen;
    }
    no1[17][10]=hei;
    no1[27][10]=hei;
    no1[28][10]=hl;
    no1[29][10]=hei;
    
    for(int i=1;i<33;i++){
        no1[i][11]=hei;
    }
    for(int i=6;i<28;i++){
        no1[i][11]=fen;
    }
    no1[16][11]=hei;
    no1[18][11]=hei;
    
    no1[0][12]=hei;
    for(int i=1;i<33;i++){
        no1[i][12]=fen;
    }
    no1[33][12]=hei;
    no1[0][13]=hei;
    for(int i=1;i<33;i++){
        no1[i][13]=fen;
    }
    no1[7][13]=hei;
    no1[11][13]=hei;
    no1[12][13]=hei;
    no1[22][13]=hei;
    no1[23][13]=hei;
    no1[27][13]=hei;
    no1[33][13]=hei;
    
    for(int i=1;i<33;i++){
        no1[i][14]=hei;
    }
    for(int i=8;i<27;i++){
        no1[i][14]=fen;
    }
    
    for(int i=5;i<30;i++){
        no1[i][15]=hei;
    }
    for(int i=6;i<29;i++){
        no1[i][15]=fen;
    }
    
    for(int i=4;i<31;i++){
        no1[i][16]=hei;
    }
    for(int i=5;i<30;i++){
        no1[i][16]=fen;
    }
    
    for(int i=4;i<31;i++){
        no1[i][17]=hei;
    }
    for(int i=5;i<30;i++){
        no1[i][17]=fen;
    }
    
    for(int i=4;i<31;i++){
        no1[i][18]=hei;
    }
    for(int i=5;i<30;i++){
        no1[i][18]=fen;
    }
    
    for(int i=4;i<31;i++){
        no1[i][19]=hei;
    }
    for(int i=5;i<30;i++){
        no1[i][19]=fen;
    }
    
    for(int i=4;i<31;i++){
        no1[i][20]=hei;
    }
    for(int i=5;i<30;i++){
        no1[i][20]=fen;
    }
    for(int i=16;i<19;i++){
        no1[i][20]=hei;
    }
    
    for(int i=5;i<30;i++){
        no1[i][21]=hei;
    }
    for(int i=6;i<29;i++){
        no1[i][21]=fen;
    }
    no1[13][21]=hei;
    no1[14][21]=hei;
    no1[20][21]=hei;
    no1[21][21]=hei;
    
    no1[6][22]=hei;
    for(int i=7;i<12;i++){
        no1[i][22]=fen;
    }
    no1[12][22]=hei;
    no1[15][22]=hei;
    for(int i=16;i<19;i++){
        no1[i][22]=fen;
    }
    no1[19][22]=hei;
    no1[22][22]=hei;
    for(int i=23;i<28;i++){
        no1[i][22]=fen;
    }
    no1[28][22]=hei;
    
    for(int i=7;i<12;i++){
        no1[i][23]=hei;
    }
    for(int i=16;i<19;i++){
        no1[i][23]=hei;
    }
    no1[17][23]=fen;
    for(int i=23;i<28;i++){
        no1[i][23]=hei;
    }
    
    no1[8][20]=hong;
    no1[8][21]=hong;
    no1[10][20]=hong;
    no1[10][21]=hong;
    no1[24][20]=hong;
    no1[24][21]=hong;
    no1[26][20]=hong;
    no1[26][21]=hong;
    
    no1[8][24]=hei;
    no1[17][24]=hei;
    no1[26][24]=hei;
    
    no1[8][25]=hei;
    no1[17][25]=hei;
    no1[26][25]=hei;
    
    no1[8][26]=hei;
    no1[17][26]=hei;
    no1[26][26]=hei;
    
    no1[8][27]=hei;
    no1[9][27]=hei;
    no1[13][27]=hei;
    no1[14][27]=hei;
    no1[17][27]=hei;
    no1[20][27]=hei;
    no1[21][27]=hei;
    no1[25][27]=hei;
    no1[26][27]=hei;
    
    no1[9][28]=hei;
    no1[13][28]=hei;
    no1[14][28]=hei;
    no1[17][28]=hei;
    no1[20][28]=hei;
    no1[21][28]=hei;
    no1[25][28]=hei;
    
    no1[9][29]=hei;
    no1[10][29]=hei;
    no1[17][29]=hei;
    no1[24][29]=hei;
    no1[25][29]=hei;
    
    no1[10][30]=hei;
    no1[16][30]=hei;
    no1[17][30]=fen;
    no1[18][30]=hei;
    no1[24][30]=hei;
    
    for(int i=10;i<25;i++){
        no1[i][31]=hei;
    }
    for(int i=16;i<19;i++){
        no1[i][31]=fen;
    }
    for(int i=11;i<24;i++){
        no1[i][32]=hei;
    }
    for(int i=12;i<23;i++){
        no1[i][32]=fen;
    }
    for(int i=11;i<24;i++){
        no1[i][33]=hei;
    }
    for(int i=13;i<22;i++){
        no1[i][33]=fen;
    }
    for(int i=12;i<23;i++){
        no1[i][34]=hei;
    }
    for(int i=14;i<21;i++){
        no1[i][34]=fen;
    }
    for(int i=13;i<22;i++){
        no1[i][35]=hei;
    }
    for(int i=15;i<20;i++){
        no1[i][35]=fen;
    }
    for(int i=14;i<21;i++){
        no1[i][36]=hei;
    }
    for(int i=16;i<19;i++){
        no1[i][36]=fen;
    }
    for(int i=16;i<19;i++){
        no1[i][37]=hei;
    }
    
    /*
    for(int i=0 ; i<34; i++) {
        for(int j=0;j<38;j++){
            mc.setBlock(i+85,j+6,-520,251,0);



        }
        

    }
    */
    
    
    for(int i=0 ; i<34; i++) {
        for(int j=0;j<38;j++){
            if(no1[i][j]==""){
                continue;
            }else{
                id=no1[i][j].substr(0,no1[i][j].find(","));
                no1[i][j]=no1[i][j].substr(no1[i][j].find(",")+1);
                data=no1[i][j].substr(0,no1[i][j].find(","));
                Sleep(10);
                
                mc.setBlock(i+85,j+6,-520,stoi(id),stoi(data));



            }
        }
        
        /*
        id=no1[i].substr(0,no1[i].find(","));
        no1[i]=no1[i].substr(no1[i].find(",")+1);
        data=no1[i].substr(0,no1[i].find(","));
        no1[i]=no1[i].substr(no1[i].find(",")+1);
        
        */

    }



    return 0;
}

 

标签:cn,mc,int,派大星,include,con
From: https://www.cnblogs.com/guoliheng/p/17488122.html

相关文章