#include <iostream> #include <windows.h> #include "minecraft.h" TxMinecraft mc; using namespace std; int X,Y,Z; int id,data; int x_pianyi,z_pianyi; void chushihua(){ X=148,Y=18,Z=511; } void erlouloutikou(){ chushihua(); Y+=26; mc.fillBlocks(X+93,Y,Z+12,X+107,Y+2,Z+12,155,0); mc.fillBlocks(X+93,Y,Z+82,X+107,Y+2,Z+82,155,0); } void erlouloutitaijie(){ chushihua(); Y+=26; mc.drawLine(X+94,Y,Z+6,X+106,Y,Z+6,44,7); mc.drawLine(X+94,Y,Z+7,X+106,Y,Z+7,44,7); mc.fillBlocks(X+94,Y,Z+8,X+106,Y,Z+11,155,0); mc.drawLine(X+94,Y+1,Z+9,X+106,Y+1,Z+9,44,7); mc.fillBlocks(X+94,Y+1,Z+10,X+106,Y+1,Z+11,155,0); mc.drawLine(X+94,Y+2,Z+11,X+106,Y+2,Z+11,44,7); mc.fillBlocks(X+94,Y,Z+83,X+106,Y,Z+86,155,0); mc.fillBlocks(X+94,Y+1,Z+83,X+106,Y+1,Z+84,155,0); mc.drawLine(X+94,Y+2,Z+83,X+106,Y+2,Z+83,44,7); mc.drawLine(X+94,Y+1,Z+85,X+106,Y+1,Z+85,44,7); mc.fillBlocks(X+94,Y,Z+87,X+106,Y,Z+88,44,7); } void siyou_loutifushou(){ mc.drawLine(X,Y,Z,X,Y,Z-2,156,0); mc.setBlock(X,Y+1,Z,44,15); mc.setBlock(X,Y+2,Z,156,2); mc.setBlock(X,Y+4,Z,156,2); mc.setBlock(X,Y+3,Z-1,156,2); mc.setBlock(X,Y+1,Z-1,155,0); mc.setBlock(X,Y+1,Z-2,155,0); mc.setBlock(X,Y+2,Z-2,44,15); mc.setBlock(X,Y+2,Y-4,156,2); mc.setBlock(X,Y+1,Z-5,44,15); mc.setBlock(X,Y,Z-4,156,4); mc.setBlock(X,Y,Z-5,156,4); mc.setBlock(X,Y,Z-7,156,2); } void loutihulan(){ chushihua(); Y+=26; mc.drawLine(X+93,Y+3,Z+12,X+93,Y+4,Z+12,155,2); mc.drawLine(X+93,Y,Z+8,X+93,Y+2,Z+8,155,2); mc.drawLine(X+93,Y,Z+5,X+93,Y+1,Z+5,155,2); mc.setBlock(X+93,Y+5,Z+12,44,7); mc.setBlock(X+93,Y+3,Z+8,44,7); mc.setBlock(X+93,Y+2,Z+5,44,7); mc.drawLine(X+93,Y+3,Z+82,X+93,Y+4,Z+82,155,2); mc.drawLine(X+93,Y,Z+86,X+93,Y+2,Z+86,155,2); mc.drawLine(X+93,Y,Z+89,X+93,Y+1,Z+89,155,2); mc.setBlock(X+93,Y+5,Z+82,44,7); mc.setBlock(X+93,Y+3,Z+86,44,7); mc.setBlock(X+93,Y+2,Z+89,44,7); X+=14; mc.drawLine(X+93,Y+3,Z+12,X+93,Y+4,Z+12,155,2); mc.drawLine(X+93,Y,Z+8,X+93,Y+4,Z+8,155,2); mc.drawLine(X+93,Y,Z+5,X+93,Y+1,Z+5,155,2); mc.setBlock(X+93,Y+5,Z+12,44,7); mc.setBlock(X+93,Y+3,Z+8,44,7); mc.setBlock(X+93,Y+2,Z+5,44,7); mc.drawLine(X+93,Y+3,Z+82,X+93,Y+4,Z+82,155,2); mc.drawLine(X+93,Y,Z+86,X+93,Y+2,Z+86,155,2); mc.drawLine(X+93,Y,Z+89,X+93,Y+1,Z+89,155,2); mc.setBlock(X+93,Y+5,Z+82,44,7); mc.setBlock(X+93,Y+3,Z+86,44,7); mc.setBlock(X+93,Y+2,Z+89,44,7); chushihua(); Y+=26; X+=93; Z+=11; siyou_loutifushou(); X+=14; siyou_loutifushou(); } void siyou_erlouzhuzi(int x_pianyi,int z_pianyi){ chushihua(); Y+=29; X+=48; Z+=12; mc.setBlock(X+x_pianyi,Y,Z+z_pianyi,155,1); mc.setBlock(X+x_pianyi,Y+1,Z+z_pianyi,155,1); mc.setBlock(X+x_pianyi,Y+2,Z+z_pianyi,44,7); Sleep(10); } void siyou_erloutaizhuziloukong_1_xzhou(int x_pianyi,int z_pianyi){ chushihua(); Y+=29; X+=48; Z+=12; mc.setBlock(X+1+x_pianyi,Y,Z+z_pianyi,156,0); mc.setBlock(X+2+x_pianyi,Y,Z+z_pianyi,156,1); mc.drawLine(X+1+x_pianyi,Y+1,Z+z_pianyi,X+2+x_pianyi,Y+1,Z+z_pianyi,44,15); Sleep(100); } void siyou_erloutaizhuziloukong_2_zzhou(int x_pianyi,int z_pianyi){ chushihua(); Y+=29; X+=48; Z+=12; mc.setBlock(X+x_pianyi,Y,Z+4+z_pianyi,156,2); mc.setBlock(X+x_pianyi,Y,Z+5+z_pianyi,44,15); mc.setBlock(X+x_pianyi,Y,Z+6+z_pianyi,156,3); mc.drawLine(X+1+x_pianyi,Y+1,Z+4+z_pianyi,X+x_pianyi,Y+1,Z+6+z_pianyi,44,15); Sleep(10); } void siyou_erloutaizhuziloukong_1_zzhou(int x_pianyi,int z_pianyi){ chushihua(); Y+=29; X+=48; X+=12; mc.setBlock(X+x_pianyi,Y,Z+1+z_pianyi,156,2); mc.setBlock(X+x_pianyi,Y,Z+2+z_pianyi,156,3); mc.drawLine(X+x_pianyi,Y+1,Z+1+z_pianyi,X+x_pianyi,Y+1,Z+2+z_pianyi,44,15); } void zongdaima(){ int cishu=0; for(int i=0;i<10;i++){ siyou_erlouzhuzi(3+cishu,0); siyou_erlouzhuzi(3+cishu,70); cishu+=4; } cishu-=1; siyou_erlouzhuzi(3+cishu,0); siyou_erlouzhuzi(3+cishu,70); cishu+=20; siyou_erlouzhuzi(3+cishu,0); siyou_erlouzhuzi(3+cishu,70); cishu+=3; for(int i=0;i<10;i++){ siyou_erlouzhuzi(3+cishu,0); siyou_erlouzhuzi(3+cishu,70); cishu+=4; } X-=1; siyou_erlouzhuzi(3+cishu,0); siyou_erlouzhuzi(3+cishu,70); siyou_erlouzhuzi(0,3); cishu=0; for(int i=0;i<17;i++){ siyou_erlouzhuzi(0,3+cishu); siyou_erlouzhuzi(104,3+cishu); cishu+=4; } cishu=0; for(int i=0;i<9;i++){ siyou_erlouzhuzi(cishu,0); siyou_erlouzhuzi(cishu,70); cishu+=4; } cishu=62; for(int i=0;i<9;i++){ siyou_erlouzhuzi(cishu,0); siyou_erlouzhuzi(cishu,70); cishu+=4; } siyou_erloutaizhuziloukong_1_xzhou(0,0); siyou_erloutaizhuziloukong_1_xzhou(39,0); siyou_erloutaizhuziloukong_1_xzhou(42,0); siyou_erloutaizhuziloukong_1_xzhou(59,0); siyou_erloutaizhuziloukong_1_xzhou(62,0); siyou_erloutaizhuziloukong_1_xzhou(101,0); siyou_erloutaizhuziloukong_1_xzhou(0,70); siyou_erloutaizhuziloukong_1_xzhou(39,70); siyou_erloutaizhuziloukong_1_xzhou(42,70); siyou_erloutaizhuziloukong_1_xzhou(59,70); siyou_erloutaizhuziloukong_1_xzhou(62,70); siyou_erloutaizhuziloukong_1_xzhou(101,70); siyou_erloutaizhuziloukong_1_zzhou(0,0); siyou_erloutaizhuziloukong_1_zzhou(0,67); siyou_erloutaizhuziloukong_1_zzhou(104,0); siyou_erloutaizhuziloukong_1_zzhou(104,67); cishu=0; for(int i=0;i<16;i++){ siyou_erloutaizhuziloukong_2_zzhou(0,70); siyou_erloutaizhuziloukong_2_zzhou(101,70); cishu+=4; } } void dierbu(){ erlouloutikou(); Sleep(1000); erlouloutitaijie(); Sleep(1000); loutihulan(); Sleep(1000); siyou_erlouzhuzi(0,0); Sleep(1000); siyou_erlouzhuzi(0,70); Sleep(1000); zongdaima(); } int x,y,z; void no1(int id,int data){ chushihua(); mc.fillBlocks(x,y,z,x+200,y+7,z+94,id,data); } void no2(int id,int data){ chushihua(); x+=1; y+=8; z+=1; mc.fillBlocks(x,y,z,x+198,y+8,z+92,id,data); } void no1_1(){ int id,data; mc.fillBlocks(x,y+1,z,x+200,y+1,z+94,155,1); mc.drawLine(x,y,z,x+200,y,z,156,2); mc.drawLine(x,y+2,z,x+200,y+2,z,156,6); mc.drawLine(x,y,z+94,x+200,y,z+94,156,3); mc.drawLine(x,y+2,z+94,x+200,y+2,z+94,156,7); } void door_1(){//大门 mc.fillBlocks(x+67,y,z,x+77,y+9,z+94,0,0); mc.fillBlocks(x+68,y+10,z,x+76,y+11,z+94,0,0); mc.fillBlocks(x+69,y+12,z,x+75,y+12,z+94,0,0); mc.fillBlocks(x+70,y+13,z,x+74,y+13,z+94,0,0); } void door_2(){//二门 mc.fillBlocks(x+42,y,z,x+50,y+5,z+94,0,0); mc.fillBlocks(x+43,y+6,z,x+49,y+7,z+94,0,0); mc.fillBlocks(x+44,y+8,z,x+48,y+8,z+94,0,0); mc.fillBlocks(x+45,y+9,z,x+47,y+9,z+94,0,0); } void no1_2(int X,int data){//一层底座效果z轴 mc.drawLine(x+x,y,z,x+x,y,z+94,156,data); mc.drawLine(x+x,y+2,z,x+x,y+2,z+94,156,data+4); } void no3(int id,int data){//第三层 chushihua(); x+=2; y+=17; z+=2; mc.fillBlocks(x,y,z,x+197,y+4,z+90,id,data); } void no4(){//第四层 chushihua(); x+=2; y+=22; z+=2; mc.fillBlocks(x,y,z,x+196,y+4,z+90,155,1); } void no5_taijei(){//第五层台阶 chushihua(); x+=2; y+=23; z+=2; mc.fillBlocks(x,y,z,x+196,y+3,z+90,43,0); mc.fillBlocks(x+1,y,z+1,x+195,y+3,z+89,0,0); } void no5_taowa(){//第五层陶瓦 y+2; x+1; z+1; mc.fillBlocks(x,y,z,x+194,y,z+88,159,14); } void no6(){//第六层 chushihua(); x+=2; y+=27; z+=2; mc.fillBlocks(x,y,z,x+196,y,z+90,126,4); mc.fillBlocks(x+1,y,z+1,x+195,y+3,z+89,0,0); } void no7(){//第七层 chushihua(); y+=26; mc.fillBlocks(x+48,y+1,z+12,x+152,y+2,z+82,155,1); mc.drawLine(x+48,y,z+12,x+152,y,z+12,156,2); mc.drawLine(x+48,y+2,z+12,x+152,y+2,z+12,156,6); mc.drawLine(x+48,y,z+82,x+152,y,z+82,156,3); mc.drawLine(x+48,y+2,z+82,x+152,y+2,z+82,156,7); mc.drawLine(x+48,y,z+12,x+48,y,z+82,156,0); mc.drawLine(x+48,y+2,z+12,x+48,y+2,z+82,156,4); mc.drawLine(x+152,y,z+12,x+152,y,z+82,156,1); mc.drawLine(x+152,y+2,z+12,x+152,y+2,z+82,156,5); } void diyibu(){ chushihua(); no1(159,14); Sleep(1000); no2(159,14); Sleep(1000); no1_1(); Sleep(1000); chushihua(); door_1(); x+28; Sleep(1000); door_1(); x+28; Sleep(1000); door_1(); x+28; Sleep(1000); chushihua(); door_2(); x+107; Sleep(1000); door_2(); Sleep(1000); chushihua(); no1_2(0,0); no1_2(51,0); Sleep(1000); no1_2(78,0); no1_2(106,0); Sleep(1000); no1_2(134,0); no1_2(158,0); Sleep(1000); no1_2(41,1); no1_2(66,1); Sleep(1000); no1_2(94,1); no1_2(122,1); Sleep(1000); no1_2(148,1); no1_2(200,1); Sleep(1000); no3(159,14); Sleep(1000); no4(); Sleep(1000); no5_taijei(); no5_taowa(); Sleep(1000); no6(); Sleep(1000); no7(); } void lou_ceng_lun_guo1(){ chushihua(); y=y+44; x=x+51; z=z+15; id=251,data=14; mc.drawLine(x+1,y,z+1,x+97,y,z+1,id,data); mc.drawLine(x+1,y,z+1,x+1,y,z+63,id,data); mc.drawLine(x+1,y,z+63,x+97,y,z+63,id,data); mc.drawLine(x+97,y,z+1,x+97,y,z+63,id,data); id=17,data=1; Sleep(300); mc.drawLine(x,y,z,x+98,y,z,id,data); mc.drawLine(x,y,z,x,y,z+64,id,data); mc.drawLine(x+98,y,z,x+98,y,z+64,id,data); mc.drawLine(x,y,z+64,x+98,y,z+64,id,data); id=35,data=11; Sleep(300); mc.drawLine(x-4,y,z-4,x+102,y,z-4,id,data); mc.drawLine(x-4,y,z+68,x+102,y,z+68,id,data); mc.drawLine(x-4,y,z-4,x-4,y,z+68,id,data); mc.drawLine(x+102,y,z-4,x+102,y,z+68,id,data); Sleep(300); } void lou_ceng_zhen_mu1(){ chushihua(); y=y+44; x=x+51; z=z+15; id=126,data=11; mc.fillBlocks(x+1,y+1,z+1,x+97,y+1,z+4,id,data); mc.fillBlocks(x+1,y+1,z+4,x+4,y+1,z+63,id,data); mc.fillBlocks(x+94,y+1,z+4,x+97,y+1,z+63,id,data); mc.fillBlocks(x+1,y+1,z+63,x+97,y+1,z+60,id,data); for(int i=0;i<49;i++){ mc.drawLine(x,y,z-1,x,y,z-3,5,3); mc.setBlock(x+1,y,z-3,126,11); mc.drawLine(x+1,y+1,z,x+1,y+1,z-2,251,14); mc.drawLine(x,y+2,z+3,x,y+2,z+4,5,3); mc.drawLine(x,y,z+65,x,y,z+67,5,3); mc.setBlock(x+1,y,z+67,126,11); mc.drawLine(x+1,y+1,z+64,x+1,y+1,z+66,251,14); mc.drawLine(x,y+2,z+60,x,y+2,z+61,5,3); x=x+2; Sleep(300); } chushihua(); y=y+44; x=x+51; z=z+15; for(int i=0;i<32;i++){ mc.drawLine(x-1,y,z,x-3,y,z,5,3); mc.setBlock(x-3,y,z+1,126,11); mc.drawLine(x,y+1,z+1,x-2,y+1,z+1,251,14); mc.drawLine(x+3,y+2,z,x+4,y+2,z,5,3); mc.drawLine(x+99,y,z,x+101,y,z,5,3); mc.setBlock(x+101,y,z+1,126,11); mc.drawLine(x+98,y+1,z+1,x+100,y+1,z+1,251,14); mc.drawLine(x+94,y+2,z,x+95,y+2,z,5,3); z=z+2; Sleep(300); } } void lou_zeng_kuang_jia1(){ chushihua(); y=y+45; x=x+56; z=z+20; id=169,data=1; mc.drawLine(x,y,z,x+88,y,z,id,data); mc.drawLine(x,y,z+54,x+88,y,z+54,id,data); mc.drawLine(x,y,z,x,y,z+54,id,data); mc.drawLine(x+88,y,z,x+88,y,z+54,id,data); Sleep(300); mc.drawLine(x+4,y+2,z+4,x+84,y+2,z+4,id,data); mc.drawLine(x+4,y+2,z+50,x+84,y+2,z+50,id,data); mc.drawLine(x+4,y+2,z+4,x+4,y+2,z+50,id,data); mc.drawLine(x+84,y+2,z+4,x+84,y+2,z+50,id,data); } void wu_zhan_yi_ceng_x_zhou1(){ chushihua(); y=y+46; x=x+60; z=z+20; for(int i=0;i<41;i++){ mc.setBlock(x,y,z,126,3); mc.setBlock(x,y,z+1,5,3); mc.setBlock(x,y+1,z+2,5,3); mc.setBlock(x,y+1,z+3,126,11); mc.setBlock(x,y+2,z+4,5,3); Sleep(300); mc.setBlock(x+1,y,z,5,3); mc.setBlock(x+1,y+1,z+1,5,3); mc.setBlock(x+1,y+1,z+2,5,3); mc.setBlock(x+1,y+2,z+3,5,3); mc.setBlock(x+1,y+2,z+4,5,3); x=x+2; } chushihua(); y=y+46; x=x+60; z=z+74; for(int i=0;i<41;i++){ mc.setBlock(x,y,z,126,3); mc.setBlock(x,y,z-1,5,3); mc.setBlock(x,y+1,z-2,5,3); mc.setBlock(x,y+1,z-3,126,11); mc.setBlock(x,y+2,z-4,5,3); Sleep(300); mc.setBlock(x+1,y,z,5,3); mc.setBlock(x+1,y+1,z-1,5,3); mc.setBlock(x+1,y+1,z-2,5,3); mc.setBlock(x+1,y+2,z-3,5,3); mc.setBlock(x+1,y+2,z-4,5,3); x=x+2; } } void wu_zhan_yi_ceng_z_zhou1(){ chushihua(); y=y+46; x=x+56; z=z+24; for(int i=0;i<24;i++){ mc.setBlock(x,y,z,126,3); mc.setBlock(x+1,y,z,5,3); mc.setBlock(x+2,y+1,z,5,3); mc.setBlock(x+3,y+1,z,126,11); mc.setBlock(x+4,y+2,z,5,3); Sleep(300); mc.setBlock(x,y,z+1,5,3); mc.setBlock(x+1,y+1,z+1,5,3); mc.setBlock(x+2,y+1,z+1,5,3); mc.setBlock(x+3,y+2,z+1,5,3); mc.setBlock(x+4,y+2,z+1,5,3); z=z+2; } chushihua(); y=y+46; x=x+144; z=z+24; for(int i=0;i<24;i++){ mc.setBlock(x,y,z,126,3); mc.setBlock(x-1,y,z,5,3); mc.setBlock(x-2,y+1,z,5,3); mc.setBlock(x-3,y+1,z,126,11); mc.setBlock(x-4,y+2,z,5,3); Sleep(300); mc.setBlock(x,y,z+1,5,3); mc.setBlock(x-1,y,z+1,5,3); mc.setBlock(x-2,y+1,z+1,5,3); mc.setBlock(x-3,y+2,z+1,5,3); mc.setBlock(x-4,y+2,z+1,5,3); z=z+2; } } void diwubu(){ chushihua; lou_ceng_lun_guo1(); lou_ceng_zhen_mu1(); lou_zeng_kuang_jia1(); wu_zhan_yi_ceng_x_zhou1(); wu_zhan_yi_ceng_z_zhou1(); } int a=0; void chu_shi_hua(){ X=0,Y=0,Z=0; } void zhu_zi_zhuang_shi_san_ceng_se_cai(){ chu_shi_hua(); X=X+53; Y=Y+41; Z=Z+17; mc.fillBlocks(X,Y,Z,X+94,Y,Z+60,id+35,data+11); mc.fillBlocks(X,Y+1,Z,X+94,Y+1,Z+60,id+35,data+3); mc.fillBlocks(X,Y+2,Z,X+94,Y+2,Z+60,id+103,data+3); mc.fillBlocks(X+1,Y+0,Z+1,X+93,Y+2,Z+59,id+0,data+0); } int cishu=0; void si_you_zhu_zi_bao_bian_huo_ban_men_x_zhou(int x_qian_yi){ Sleep(1000); chu_shi_hua(); Y=Y+38; X=X+53; Z=Z+17; mc.setBlock(X+x_qian_yi,Y+41,Z-1,id+96,data+4); mc.setBlock(X+x_qian_yi,Y+41,Z+61,id+96,data+5); Sleep(300); } void si_you_zhu_zi_bao_bian_huo_ban_men_z_zhou(int z_qian_yi){ Sleep(1000); chu_shi_hua(); Y=Y+38; X=X+53; Z=Z+17; mc.setBlock(X-1,Y+41,Z+z_qian_yi,id+96,data+6); mc.setBlock(X+95,Y+41,Z+z_qian_yi,id+96,data+7); Sleep(300); } void dou_gong_x_zhou_1(int x_qian_yi){ Sleep(1000); chu_shi_hua(); Y=Y+41; X=X+53; Z=Z+16; X+x_qian_yi; mc.setBlock(X-0,Y+0,Z+0,id+136,data+6); mc.setBlock(X+1,Y+1,Z+0,id+136,data+0); mc.setBlock(X-1,Y+1,Z+0,id+136,data+1); mc.setBlock(X-2,Y+2,Z+0,id+136,data+4); mc.setBlock(X+2,Y+2,Z+0,id+136,data+5); mc.setBlock(X-0,Y+1,Z+0,id+5,data+3); mc.setBlock(X-0,Y+1,Z-1,id+136,data+2); mc.setBlock(X-0,Y+2,Z+0,id+5,data+3); Sleep(1000); mc.setBlock(X+1,Y+2,Z+0,id+5,data+3); mc.setBlock(X-1,Y+2,Z+0,id+5,data+3); mc.setBlock(X+0,Y+2,Z-1,id+169,data+0); mc.setBlock(X-1,Y+2,Z-1,id+136,data+1); mc.setBlock(X+1,Y+2,Z-1,id+136,data+0); mc.setBlock(X+0,Y+2,Z-2,id+136,data+2); mc.setBlock(X+0,Y-1,Z+0,id+190,data+0); mc.setBlock(X+1,Y-1,Z+0,id+136,data+5); mc.setBlock(X-1,Y-1,Z-0,id+136,data+4); mc.setBlock(X-2,Y-1,Z-0,id+126,data+11); mc.setBlock(X+2,Y-1,Z-0,id+126,data+11); mc.setBlock(X-2,Y+1,Z-0,id+126,data+3); mc.setBlock(X+2,Y+2,Z-0,id+126,data+3); mc.setBlock(X-0,Y-2,Z-0,id+126,data+11); mc.setBlock(X+1,Y-2,Z-0,id+126,data+11); Sleep(1000); mc.setBlock(X+2,Y-2,Z-0,id+126,data+11); mc.setBlock(X-1,Y-2,Z-0,id+126,data+11); mc.setBlock(X-2,Y-2,Z-0,id+126,data+11); mc.setBlock(X+1,Y-0,Z+0,id+190,data+0); mc.setBlock(X+2,Y-0,Z+0,id+190,data+0); mc.setBlock(X-1,Y-0,Z+0,id+190,data+0); mc.setBlock(X-2,Y-0,Z+0,id+190,data+0); Sleep(300); } void dou_gong_z_zhou_1(int z_qian_yi){ Sleep(1000); chu_shi_hua(); Y=Y+41; X=X+52; Z=Z+17; Z+z_qian_yi; mc.setBlock(X-0,Y+0,Z+0,id+136,data+4); mc.setBlock(X+0,Y+1,Z+1,id+136,data+2); mc.setBlock(X-0,Y+1,Z-1,id+136,data+3); mc.setBlock(X-1,Y+1,Z+0,id+136,data+0); mc.setBlock(X+0,Y+2,Z+0,id+5,data+3); mc.setBlock(X-0,Y+2,Z+1,id+5,data+3); mc.setBlock(X-0,Y+2,Z-1,id+5,data+3); mc.setBlock(X-1,Y+2,Z+0,id+169,data+0); mc.setBlock(X-1,Y+2,Z-1,id+139,data+3); mc.setBlock(X-1,Y+2,Z+1,id+136,data+2); mc.setBlock(X-0,Y+2,Z+2,id+136,data+7); mc.setBlock(X-0,Y+2,Z-2,id+136,data+6); mc.setBlock(X-2,Y+2,Z+0,id+136,data+0); Sleep(300); mc.setBlock(X-0,Y-1,Z+0,id+190,data+0); mc.setBlock(X-0,Y-1,Z+1,id+136,data+5); mc.setBlock(X-0,Y-1,Z-1,id+136,data+4); mc.setBlock(X-0,Y-1,Z-2,id+126,data+11); mc.setBlock(X-0,Y-1,Z+2,id+126,data+11); mc.setBlock(X-0,Y+1,Z-2,id+126,data+3); mc.setBlock(X-0,Y+1,Z+2,id+126,data+3); mc.setBlock(X-0,Y-2,Z-0,id+126,data+11); mc.setBlock(X-0,Y-2,Z+1,id+126,data+11); mc.setBlock(X-0,Y-2,Z+2,id+126,data+11); mc.setBlock(X-0,Y-2,Z-1,id+126,data+11); mc.setBlock(X-0,Y-2,Z-2,id+126,data+11); mc.setBlock(X-0,Y-1,Z-2,id+126,data+11); mc.setBlock(X-0,Y-0,Z+1,id+190,data+0); mc.setBlock(X-0,Y-0,Z+2,id+190,data+0); mc.setBlock(X-0,Y-0,Z-1,id+190,data+0); mc.setBlock(X-0,Y-0,Z-2,id+190,data+0); } void dou_gong_z_zhou_2(int z_qian_yi){ Sleep(1000); chu_shi_hua(); Y=Y+41; X=X+148; Z=Z+17; Z+z_qian_yi; mc.setBlock(X-0,Y+0,Z+0,id+136,data+5); mc.setBlock(X-0,Y+1,Z+0,id+5,data+3); mc.setBlock(X-0,Y+1,Z+1,id+136,data+2); mc.setBlock(X-0,Y+1,Z-1,id+136,data+3); mc.setBlock(X-0,Y+2,Z-1,id+5,data+3); mc.setBlock(X-0,Y+2,Z-0,id+5,data+3); mc.setBlock(X-0,Y+2,Z+1,id+5,data+3); mc.setBlock(X+1,Y+1,Z+0,id+136,data+1); mc.setBlock(X+1,Y+2,Z+0,id+169,data+0); mc.setBlock(X+1,Y+2,Z-1,id+136,data+3); mc.setBlock(X+1,Y+2,Z+1,id+136,data+2); mc.setBlock(X+2,Y+2,Z+0,id+136,data+1); mc.setBlock(X+0,Y+2,Z+2,id+136,data+7); mc.setBlock(X+0,Y+2,Z-2,id+136,data+6); Sleep(300); mc.setBlock(X+0,Y-1,Z-0,id+190,data+0); mc.setBlock(X+0,Y-1,Z+1,id+136,data+5); mc.setBlock(X+0,Y-1,Z-1,id+136,data+4); mc.setBlock(X+0,Y-1,Z-2,id+126,data+11); mc.setBlock(X+0,Y-1,Z+2,id+126,data+11); mc.setBlock(X+0,Y+1,Z-2,id+126,data+3); mc.setBlock(X+0,Y+1,Z+2,id+126,data+3); mc.setBlock(X+0,Y-2,Z-0,id+126,data+11); mc.setBlock(X+0,Y-2,Z+1,id+126,data+11); mc.setBlock(X+0,Y-2,Z+2,id+126,data+11); mc.setBlock(X+0,Y-2,Z-1,id+126,data+11); mc.setBlock(X+0,Y+0,Z+1,id+190,data+0); mc.setBlock(X+0,Y+0,Z+2,id+190,data+0); mc.setBlock(X+0,Y+0,Z-1,id+190,data+0); mc.setBlock(X+0,Y+0,Z-2,id+190,data+0); Sleep(300); } void dou_gong_x_zhou_2(int x_qian_yi){ Sleep(1000); chu_shi_hua(); Y=Y+41; X=X+53; Z=Z+78; X+x_qian_yi; mc.setBlock(X+0,Y+0,Z+0,id+136,data+7); mc.setBlock(X+0,Y+1,Z+0,id+5,data+3); mc.setBlock(X+1,Y+1,Z+0,id+136,data+0); mc.setBlock(X-1,Y+1,Z+0,id+136,data+1); mc.setBlock(X-1,Y+2,Z+0,id+5,data+3); mc.setBlock(X+0,Y+2,Z+0,id+5,data+3); mc.setBlock(X+1,Y+2,Z-1,id+5,data+3); mc.setBlock(X+2,Y+2,Z+0,id+136,data+5); mc.setBlock(X-2,Y+2,Z+0,id+136,data+4); mc.setBlock(X,Y+1,Z+1,id+136,data+3); mc.setBlock(X+0,Y+2,Z+1,id+169,data+0); mc.setBlock(X-1,Y+2,Z+1,id+169,data+1); mc.setBlock(X+1,Y+2,Z+1,id+136,data+0); mc.setBlock(X-0,Y+2,Z+2,id+136,data+3); Sleep(1000); mc.setBlock(X-0,Y-1,Z+0,id+190,data+0); mc.setBlock(X+1,Y-1,Z+0,id+136,data+5); mc.setBlock(X-1,Y-1,Z+0,id+136,data+4); mc.setBlock(X-2,Y-1,Z+0,id+126,data+11); mc.setBlock(X+2,Y-1,Z+0,id+126,data+11); mc.setBlock(X+1,Y+1,Z+0,id+126,data+3); mc.setBlock(X-0,Y-2,Z+0,id+126,data+3); mc.setBlock(X-0,Y-2,Z+0,id+126,data+11); mc.setBlock(X+1,Y-2,Z+0,id+126,data+11); mc.setBlock(X+2,Y-2,Z+0,id+126,data+11); mc.setBlock(X-1,Y-2,Z+0,id+126,data+11); mc.setBlock(X-2,Y-2,Z+0,id+126,data+11); mc.setBlock(X+1,Y-0,Z+0,id+190,data+0); mc.setBlock(X+2,Y-0,Z+0,id+190,data+0); mc.setBlock(X-1,Y-0,Z+0,id+190,data+0); mc.setBlock(X-2,Y-0,Z+0,id+190,data+0); Sleep(300); } int main(int argc, char** argv) { bool con=mc.ConnectMinecraft("zk","3f75c260388d4ed0a24574d340bf4e81"); if(!con){ cout<<"..."; } diyibu(); dierbu(); diwubu(); return 0; }
1 #include <iostream> 2 #include "minecraft.h" 3 TxMinecraft mc; 4 using namespace std; 5 int main(int argc, char** argv) { 6 bool con= mc.ConnectMinecraft("zk.makeblock.net.cn","3f75c260388d4ed0a24574d340bf4e81"); 7 if(!con){ 8 cout<<"sb远方传来风笛"; 9 } 10 int x,y,z; 11 int id,data; 12 cin>>x>>y>>z; 13 //一个空心小方块 14 mc.fillBlocks(x,y,z,x+5,y,z+5,98,0); 15 mc.fillBlocks(x+1,y,z+1,x+4,y,z+4,0,0); 16 //剩下三个 17 mc.fillBlocks(x+15,y,z,x+20,y,z+5,98,0); 18 mc.fillBlocks(x+16,y,z+1,x+19,y,z+4,0,0); 19 20 mc.fillBlocks(x,y,z+15,x+5,y,z+20,98,0); 21 mc.fillBlocks(x+1,y,z+16,x+4,y,z+19,0,0); 22 23 mc.fillBlocks(x+15,y,z+15,x+20,y,z+20,98,0); 24 mc.fillBlocks(x+16,y,z+16,x+19,y,z+19,0,0); 25 //第一部分链接的东东 26 for(int i=-1;i<2;i++){ 27 mc.drawLine(x+5,y+i,z+1,x+15,y+i,z+1,98,0); 28 mc.drawLine(x+5,y+i,z+19,x+15,y+i,z+19,98,0); 29 mc.drawLine(x+1,y+i,z+5,x+1,y+i,z+15,98,0); 30 mc.drawLine(x+19,y+i,z+5,x+19,y+i,z+15,98,0); 31 } 32 mc.drawLine(x+5,y+2,z+1,x+15,y+2,z+1,109,2);// 33 mc.drawLine(x+5,y+2,z+19,x+15,y+2,z+19,109,3);// 34 mc.drawLine(x+19,y+2,z+5,x+19,y+2,z+15,109,1);// 35 mc.drawLine(x+1,y+2,z+5,x+1,y+2,z+15,109,0);//1 36 37 38 //第二步 39 mc.fillBlocks(x,y,z,x+5,y+2,z,98,0); 40 mc.fillBlocks(x,y+2,z,x+5,y+2,z,109,2); 41 mc.fillBlocks(x+15,y,z,x+20,y+2,z,98,0); 42 mc.fillBlocks(x+15,y+2,z+20,x+20,y+2,z+20,109,3); 43 44 mc.fillBlocks(x,y,z+20,x+5,y+2,z+20,98,0); 45 mc.fillBlocks(x,y+2,z+20,x+5,y+2,z+20,109,3); 46 mc.fillBlocks(x+15,y,z+20,x+20,y+2,z+20,98,0); 47 mc.fillBlocks(x+15,) 48 return 0; 49 }