#include <iostream>
#include "minecraft.h"
#include "Windows.h"
TxMinecraft mc;
using namespace std;
int x,y,z,id,data;
int b=0;
void a(){
    mc.setVariable(x,y,z);
    id=44;
    data=8;
    //0
    mc.offsetDrawLine(5,b,38,61,b,38,id,data);
    mc.offsetDrawLine(5,b,59,61,b,59,id,data);
    //十字架
    id=44;
    data=13;
    mc.fillOffsetBlocks(48,b,15,18,b,63,id,data);
    id=44;
    data=8;
    mc.fillOffsetBlocks(48,b,45,37,b,15,id,data);
    mc.fillOffsetBlocks(48,b,44,38,b,15,0,0);
    mc.fillOffsetBlocks(29,b,45,18,b,15,id,data);
    mc.fillOffsetBlocks(28,b,44,18,b,15,0,0);
    mc.fillOffsetBlocks(48,b,63,37,b,51,id,data);
    mc.fillOffsetBlocks(48,b,63,38,b,52,0,0);
    mc.fillOffsetBlocks(29,b,63,18,b,51,id,data);
    Sleep(50);
    mc.fillOffsetBlocks(28,b,63,18,b,52,0,0);
    mc.setOffsetBlock(43,0,18,id,data);
    mc.setOffsetBlock(43,0,19,id,data);
    mc.setOffsetBlock(23,0,18,id,data);
    mc.setOffsetBlock(23,0,19,id,data);    
    Sleep(50);
    //下面
    mc.offsetDrawLine(4,b,4,4,b,76,id,data);
    mc.offsetDrawLine(62,b,4,62,b,76,id,data);
    mc.offsetDrawLine(5,b,5,62,b,5,id,data);
    mc.offsetDrawLine(5,b,11,62,b,11,id,data);
    mc.offsetDrawLine(28,b,12,28,b,4,id,data);
    mc.offsetDrawLine(38,b,12,38,b,4,id,data);
    mc.fillOffsetBlocks(28,b,23,38,b,27,id,data);
    mc.offsetDrawLine(3,b,25,61,b,25,id,data);
    mc.fillOffsetBlocks(37,b,26,29,b,24,0,0);
    mc.setOffsetBlock(28,0,22,id,data);
    mc.setOffsetBlock(28,0,28,id,data);
    mc.setOffsetBlock(38,0,22,id,data);
    mc.setOffsetBlock(38,0,28,id,data);    
    mc.offsetDrawLine(14,b,12,14,b,37,id,data);
    mc.offsetDrawLine(52,b,26,52,b,37,id,data);
    Sleep(50);
    mc.fillOffsetBlocks(21,b,64,45,b,82,id,data);
    mc.offsetDrawLine(5,b,70,61,b,70,id,data);
    mc.offsetDrawLine(5,b,76,61,b,76,id,data);
    mc.fillOffsetBlocks(22,b,65,44,b,81,0,0);
    mc.setOffsetBlock(21,0,63,id,data);
    mc.setOffsetBlock(21,0,83,id,data);
    mc.setOffsetBlock(45,0,63,id,data);
    mc.setOffsetBlock(45,0,83,id,data);    
}
void b2(){
    id=98 ,data=0;
    mc.offsetDrawLine(29,1,3,37,1,3,id,data);
    mc.offsetDrawLine(28,1,4,38,1,4,id,data);
    mc.offsetDrawLine(28,1,12,38,1,12,id,data);
    mc.offsetDrawLine(29,1,13,37,1,13,id,data);
    mc.offsetDrawLine(4,1,4,4,1,4,id,data);
    mc.offsetDrawLine(62,1,4,62,1,4,id,data);
    mc.fillOffsetBlocks(4,1,5,62,1,11,id,data);
    mc.fillOffsetBlocks(4,1,12,14,1,24,id,data);
    mc.fillOffsetBlocks(4,1,25,14,1,58,id,data);
    mc.fillOffsetBlocks(4,1,59,7,1,75,id,data);
    mc.fillOffsetBlocks(8,1,70,20,1,75,id,data);
    mc.fillOffsetBlocks(21,1,62,21,1,62,id,data);
    mc.fillOffsetBlocks(21,1,82,21,1,82,id,data);
    mc.fillOffsetBlocks(45,1,62,45,1,62,id,data);
    mc.fillOffsetBlocks(45,1,82,45,1,82,id,data);
    mc.fillOffsetBlocks(21,1,62,45,1,81,id,data);
    mc.fillOffsetBlocks(15,1,38,16,1,58,id,data);
    mc.fillOffsetBlocks(17,1,38,17,1,38,id,data);
    mc.fillOffsetBlocks(17,1,45,17,1,45,id,data);
    mc.fillOffsetBlocks(17,1,51,17,1,51,id,data);
    mc.fillOffsetBlocks(17,1,58,17,1,58,id,data);
    mc.fillOffsetBlocks(46,1,70,62,1,75,id,data);
    mc.fillOffsetBlocks(59,1,69,62,1,59,id,data);
    mc.fillOffsetBlocks(49,1,45,49,1,45,id,data);
    mc.fillOffsetBlocks(49,1,51,49,1,51,id,data);
    mc.fillOffsetBlocks(49,1,58,49,1,58,id,data);
    mc.fillOffsetBlocks(50,1,39,62,1,58,id,data);
    mc.fillOffsetBlocks(49,1,38,62,1,25,id,data);
    mc.fillOffsetBlocks(62,1,12,62,1,24,id,data);
    mc.fillOffsetBlocks(48,1,25,38,1,28,id,data);
    mc.fillOffsetBlocks(15,1,25,28,1,28,id,data);
    mc.fillOffsetBlocks(30,1,24,36,1,26,id,data);
    mc.offsetDrawLine(23,1,12,23,1,17,id,data);
    mc.offsetDrawLine(23,1,20,23,1,24,id,data);
    mc.offsetDrawLine(43,1,12,43,1,17,id,data);
    mc.offsetDrawLine(43,1,20,43,1,24,id,data);
    mc.offsetDrawLine(38,1,22,38,1,24,id,data);
    mc.offsetDrawLine(37,1,23,37,1,27,id,data);
    mc.offsetDrawLine(28,1,22,28,1,24,id,data);
    mc.offsetDrawLine(29,1,23,29,1,27,id,data);
    mc.offsetDrawLine(40,1,29,42,1,29,id,data);
    id=44,data=5;
    mc.offsetDrawLine(30,1,2,36,1,2,id,data);
    mc.offsetDrawLine(30,1,14,36,1,14,id,data);
    mc.offsetDrawLine(30,1,23,36,1,23,id,data);
    mc.offsetDrawLine(30,1,27,36,1,27,id,data);
    mc.offsetDrawLine(24,1,29,26,1,29,id,data);
    mc.offsetDrawLine(40,1,30,42,1,30,id,data);
    mc.offsetDrawLine(49,1,39,49,1,44,id,data);
    mc.offsetDrawLine(49,1,46,49,1,50,id,data);
    mc.offsetDrawLine(49,1,52,49,1,57,id,data);
    mc.offsetDrawLine(17,1,39,17,1,44,id,data);
    mc.offsetDrawLine(17,1,46,17,1,50,id,data);
    mc.offsetDrawLine(17,1,52,17,1,57,id,data);
    mc.offsetDrawLine(9,1,59,9,1,68,id,data);
    mc.offsetDrawLine(20,1,68,9,1,68,id,data);
    mc.offsetDrawLine(46,1,68,57,1,68,id,data);
    mc.offsetDrawLine(57,1,59,57,1,68,id,data);
    id=42,data=0;
    mc.offsetDrawLine(15,1,29,23,1,29,id,data);
    mc.offsetDrawLine(27,1,29,27,1,29,id,data);
    mc.offsetDrawLine(39,1,29,39,1,29,id,data);
    mc.offsetDrawLine(43,1,29,48,1,29,id,data);
    mc.offsetDrawLine(48,1,29,48,1,38,id,data);
    mc.offsetDrawLine(8,1,59,8,1,69,id,data);
    mc.offsetDrawLine(8,1,69,20,1,69,id,data);
    mc.offsetDrawLine(46,1,69,58,1,69,id,data);
    mc.offsetDrawLine(58,1,68,58,1,59,id,data);
    id=44;
    mc.offsetDrawLine(39,1,30,39,1,30,id,data);
    mc.offsetDrawLine(43,1,30,47,1,30,id,data);
    mc.offsetDrawLine(47,1,31,47,1,38,id,data);
    mc.fillOffsetBlocks(15,1,12,22,1,24,id,data); 
    mc.fillOffsetBlocks(44,1,12,61,1,24,id,data);
    id=109,data=2;
    mc.offsetDrawLine(29,1,2,29,1,2,id,data);
    mc.offsetDrawLine(37,1,2,37,1,2,id,data);
    id=126,data=0;
    mc.offsetDrawLine(54,1,23,54,1,24,id,data);
    id=251;
    mc.offsetDrawLine(54,1,22,54,1,22,id,data);
    id=109,data=3;
    mc.offsetDrawLine(29,1,14,29,1,14,id,data);
    mc.offsetDrawLine(37,1,14,37,1,14,id,data);
}
void d(){
    b=4;
    id=251;
    data=0;
    mc.offsetDrawLine(4,b,4,4,b,75,id,data);
    mc.offsetDrawLine(62,b,4,62,b,75,id,data);
    mc.offsetDrawLine(4,b,75,62,b,75,id,data);
    mc.fillOffsetBlocks(45,b,81,21,b,62,id,data);
    mc.fillOffsetBlocks(44,b,80,22,b,62,0,0);
    mc.setOffsetBlock(45,b,82,id,data);
    mc.setOffsetBlock(21,b,82,id,data);
    mc.offsetDrawLine(43,b,72,37,b,72,id,data);
    mc.offsetDrawLine(29,b,72,23,b,72,id,data);
    mc.offsetDrawLine(8,b,58,17,b,58,id,data);
    mc.offsetDrawLine(58,b,58,49,b,58,id,data);
    mc.offsetDrawLine(56,b,40,56,b,44,id,data);
    mc.offsetDrawLine(56,b,52,56,b,56,id,data);
    mc.offsetDrawLine(10,b,40,10,b,44,id,data);
    mc.offsetDrawLine(10,b,52,10,b,56,id,data);
    mc.offsetDrawLine(5,b,38,10,b,38,id,data);
    mc.offsetDrawLine(14,b,38,17,b,38,id,data);
    mc.offsetDrawLine(61,b,38,56,b,38,id,data);
    mc.offsetDrawLine(52,b,38,49,b,38,id,data);
    mc.offsetDrawLine(14,b,38,14,b,38,id,data);
    mc.offsetDrawLine(52,b,38,52,b,38,id,data);
    
    
}
int main() {
bool con=mc.ConnectMinecraft("zk","2839fa7ac28b4f7d8952cc46c1f179ec");
    if(!con){
        cout<<"失败";
    } 
    bool fly=true;
    mc.setPlayerFly("wangshuo");
    cin>>x>>y>>z;//72 50 -325
    a();
    b2();
    
    d();
    return 0;
}

 

posted on 2023-07-17 18:55  爱吃泡面的皮卡  阅读(25)  评论(0编辑  收藏  举报