首页 > 其他分享 >天安门

天安门

时间:2023-07-19 20:46:16浏览次数:41  
标签:mc 156 drawLine void 天安门 fillBlocks 94

#include <iostream>
#include <string>
#include <ctime>
#include "minecraft.h"
using namespace std;
TxMinecraft mc;
int x,y,z;
void no0(){//初始化 
	x=245;
	y=53;
	z=420;
}
void no1(int id,int data){//第一层 
	no0();
	mc.fillBlocks(x,y,z,x+200,y+7,z+94,id,data);	
}
void no2(int id,int data){//第二层 
	no0();
	x+=1;
	y+=8;
	z+=1;
	mc.fillBlocks(x,y,z,x+198,y+8,z+92,id,data);
}
void no1_1(){//一层底座效果x轴 
	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){//第三层 
	no0();
	x+=2;
	y+=17;
	z+=2;
	mc.fillBlocks(x,y,z,x+197,y+4,z+90,id,data);
}
void no4(){//第四层 
	no0();
	x+=2;
	y+=22;
	z+=2;
	mc.fillBlocks(x,y,z,x+196,y+4,z+90,155,1);
}
void no5_taijei(){//第五层台阶 
	no0();
	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(){//第六层 
	no0();
	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(){//第七层 
	no0();
	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);
} 
int main(int argc, char** argv) {
	bool con=mc.ConnectMinecraft("zk","08bd17c1ea594f2684182fd956c2d172");
	if(!con){
		cout<<"失败";
		return 0;
	}
	int X,Y,Z,id,data;
	no0();
	no1(159,14);
	no2(159,14);
	no1_1();
	no0();
	door_1();
	x+28;
	door_1();
	x+28;
	door_1();
	x+28;
	no0();
	door_2();
	x+107;
	door_2();
	no0();
	no1_2(0,0);
	no1_2(51,0); 
	no1_2(78,0);
	no1_2(106,0);
	no1_2(134,0);
	no1_2(158,0);
	no1_2(41,1);
	no1_2(66,1);
	no1_2(94,1);
	no1_2(122,1);
	no1_2(148,1);
	no1_2(200,1);
	no3(159,14);
	no4();
	no5_taijei();
	no5_taowa();
	no6();
	no7(); 

	return 0;
}

  

标签:mc,156,drawLine,void,天安门,fillBlocks,94
From: https://www.cnblogs.com/fushuxuan/p/17566666.html

相关文章