首页 > 其他分享 >战斗机

战斗机

时间:2023-06-24 20:13:26浏览次数:34  
标签:战斗机 int list 107 167 data id

#include <bits/stdc++.h>
#include "minecraft.h"
#include <Windows.h>
using namespace std;
TxMinecraft mc;
struct Block{
    int x;
    int y;
    int z;
    int id;
    int data;
    void b(TxMinecraft mc,int x,int y,int z,int _x,int _y,int _z){
        mc.setBlock(_x+x,_y+y,_z+z,id,data);
    }
};
int main() {
    bool con = mc.ConnectMinecraft("zk","4cd7d6e558c943c397a3a5243fa78e19");
    if(!con){
        cout<<"连接失败";
    }
    mc.setPlayerFly("wangyihang");
    string id,data;
    int _x,_y,_z;
    cout<<"请输入 X Y Z 坐标:";
    cin>>_x>>_y>>_z;
    Block list[500];
    Block a;
    //0
    a.y = 0;
    
    a.x = 0;
    a.z = 1;
    a.id = 139;
    a.data = 0;
    list[0] = a;
    
    a.z = 5;
    list[1] = a;
    
    a.x = 1;
    a.z = 0;
    a.id = 143;
    a.data = 4;
    list[2] = a;
    
    a.z = 1;
    a.id = 112;
    a.data = 0;
    list[3] = a;
    
    a.z = 2;
    a.id = 143;
    a.data = 3;
    list[4] = a;
    
    a.z = 4;
    a.data = 4;
    list[5] = a;
    
    a.z = 5;
    a.id = 112;
    a.data = 0;
    list[6] = a;
    
    a.z = 6;
    a.id = 143;
    a.data = 3;
    list[7] = a;
    
    a.x = 11;
    a.z = 2;
    a.data = 4;
    list[8] = a;
    
    a.x = 11;
    a.z = 3;
    a.id = 112;
    a.data = 0;
    list[9] = a;
    
    a.z = 4;
    a.id = 143;
    a.data = 3;
    list[10] = a;
    
    //1
    a.y++;
    
    a.z = 2;
    a.id = 167;
    a.data = 8;
    list[11] = a;
    
    a.z = 4;
    list[12] = a;
    
    a.x = -5;
    a.z = 2;
    list[13] = a;
    
    a.z = 4;
    list[14] = a;
    
    a.x = -4;
    a.z = 2;
    list[15] = a;
    
    a.z = 4;
    list[16] = a;
    
    a.x = -3;
    a.z = 2;
    list[17] = a;
    
    a.z = 4;
    list[18] = a;
    
    a.x = -2;
    a.z = 1;
    list[19] = a;
    
    a.z = 2;
    list[20] = a;
    
    a.x = -2;
    a.z = 4;
    list[21] = a;
    
    a.z = 5;
    list[22] = a;
    
    a.x = -1;
    a.z = 1;
    list[23] = a;
     
    a.z = 2;
    list[24] = a;
    
    a.z = 4;
    list[25] = a;
    
    a.z = 5;
    list[26] = a;
    
    a.x = 0;
    a.z = 1;
    a.id = 144;
    a.data = 5;
    list[27] = a;
    
    a.z = 5;
    list[28] = a;
    
    a.x = 1;
    a.z = 1;
    a.id = 198;
    list[29] = a;
    
    a.z = 2;
    a.id = 107;
    a.data = 6;
    list[30] = a;
    
    a.z = 4;
    list[31] = a;
    
    a.z = 5;
    a.id = 198;
    a.data = 5;
    list[32] = a;
    
    a.x = 2;
    a.z = 1;
    a.id = 107;
    list[33] = a;
    
    a.z = 2;
    a.id = 167;
    a.data = 8;
    list[34] = a;
    
    a.z = 4;
    list[35] = a;
    
    a.z = 5;
    a.id = 107;
    list[36] = a;
    
    a.x = 3;
    a.z = 1;
    a.id = 167;
    list[37] = a;
    
    a.z = 2;
    list[38] = a;
    
    a.z = 4;
    list[39] = a;
    
    a.z = 5;
    list[40] = a;
    
    a.x = 4;
    a.z = 1;
    list[41] = a;
    
    a.x = 4;
    a.z = 2;
    list[42] = a;
    
    a.x = 4;
    a.z = 4;
    list[43] = a;
    
    a.x = 4;
    a.z = 5;
    list[44] = a;
    
    a.x = 5;
    a.z = 1;
    list[45] = a;
    
    a.x = 5;
    a.z = 2;
    list[46] = a;
    
    a.x = 5;
    a.z = 4;
    list[47] = a;
    
    a.x = 5;
    a.z = 6;
    list[48] = a;
    
    a.x = 6;
    a.z = 1;
    list[49] = a;
    
    a.x = 6;
    a.z = 5;
    list[50] = a;
    
    a.x = 7;
    a.z = 1;
    list[51] = a;
    
    a.x = 7;
    a.z = 5;
    list[52] = a;
    
    a.x = 8;
    a.z = 1;
    list[53] = a;
    
    a.x = 8;
    a.z = 5;
    list[54] = a;
    
    a.x = 10;
    a.z = 3;
    a.id = 167;
    a.data = 6;
    list[55] = a;
    
    a.x = 11;
    a.z = 3;
    a.id = 198;
    a.data = 5;
    list[56] = a;
    
    a.x = 12;
    a.z = 3;
    a.id = 107;
    a.data = 1;
    list[57] = a;
    
    //2
    a.y++;
    
    a.x = -8;
    a.z = -3;
    a.id = 167;
    a.data = 8;
    list[58] = a;
    
    a.z = 2;
    a.id = 44;
    a.data = 14;
    list[59] = a;
    
    a.z = 3;
    a.id = 167;
    a.data = 8;
    list[60] = a;
    
    a.z = 4;
    a.id = 44;
    a.data = 14;
    list[61] = a;
    
    a.z = 9;
    a.id = 167;
    a.data = 8;
    list[62] = a;
    
    a.x = -7;
    a.z = -3;
    list[62] = a;

    a.z = -2;
    list[63] = a;
    
    a.z = -1;
    list[64] = a;
    
    a.z = 0;
    list[65] = a;
    
    a.z = 2;
    a.id = 114;
    a.data = 4;
    list[66] = a;
    
    a.z = 3;
    a.id = 167;
    a.data = 8;
    list[67] = a;
    for(int i = 0;i<47;i++){
        list[i].b(mc,x,y,z,_x,_y,_z);
    }
    return 0;
}

 

标签:战斗机,int,list,107,167,data,id
From: https://www.cnblogs.com/wangyihang-xh/p/17501617.html

相关文章

  • 战斗机
     1#include<iostream>2#include<string>3#include"minecraft.h"4usingnamespacestd;5TxMinecraftmc;6structBlock{7intx,y,z,id,data;8}910intmain(intargc,char**argv){11boolcon=mc......
  • 战斗机
    #include<iostream>#include<string>#include"Windows.h"#include"minecraft.h"#include<cstring>TxMinecraftmc;usingnamespacestd;structBlock{intx;inty;intz;intid;intdata;}......