首页 > 其他分享 >沙漠神殿

沙漠神殿

时间:2023-07-07 20:47:06浏览次数:23  
标签:25 mc 神殿 drawLine 沙漠 19 data id

#include <iostream>
#include <string>
#include "minecraft.h"
using namespace std;
TxMinecraft mc;
void one(int x,int y,int z){
	int id,data;
	id=179;data=1;
	mc.drawLine(x+10,y,z,x,y+10,z,id,data);
	mc.drawLine(x,y+10,z,x+5,y+15,z,id,data);
	mc.drawLine(x+6,y+16,z,x+6,y+35,z,id,data);
	mc.drawLine(x+5,y+36,z,x,y+41,z,id,data);
	mc.drawLine(x,y+41,z,x+9,y+50,z,id,data);
	
	mc.drawLine(x+15,y+4,z,x+7,y+12,z,id,data);
	mc.drawLine(x+15,y+4,z,x+19,y+8,z,id,data);
	mc.drawLine(x+7,y+12,z,x+11,y+16,z,id,data);
	mc.drawLine(x+19,y+8,z,x+9,y+19,z,id,data);
	mc.drawLine(x+9,y+19,z,x+19,y+30,z,id,data);
	mc.drawLine(x+19,y+30,z,x+7,y+42,z,id,data);
	mc.drawLine(x+11,y+39,z,x+16,y+45,z,id,data);
	mc.drawLine(x+7,y+42,z,x+13,y+48,z,id,data);
	mc.drawLine(x+16,y+45,z,x+13,y+48,z,id,data);
	
	mc.drawLine(x+21,y,z,x+21,y+12,z,id,data);
	mc.drawLine(x+25,y+8,z,x+22,y+11,z,id,data);
	mc.drawLine(x+25,y+8,z,x+28,y+11,z,id,data);
	mc.setBlock(x+25,y+7,z,id,data);
	mc.drawLine(x+29,y,z,x+29,y+12,z,id,data);
	
	mc.drawLine(x+25,y+15,z,x+22,y+18,z,id,data);
	mc.drawLine(x+25,y+15,z,x+28,y+18,z,id,data);
	mc.drawLine(x+21,y+19,z,x+21,y+32,z,id,data);
	mc.drawLine(x+29,y+19,z,x+29,y+32,z,id,data);
	mc.drawLine(x+21,y+32,z,x+25,y+36,z,id,data);
	mc.drawLine(x+29,y+32,z,x+25,y+36,z,id,data);
	
	mc.drawLine(x+25,y+40,z,x+15,y+50,z,id,data);
	mc.drawLine(x+25,y+40,z,x+35,y+50,z,id,data);
	
	mc.drawLine(x+35,y+4,z,x+31,y+8,z,id,data);
	mc.drawLine(x+35,y+4,z,x+43,y+12,z,id,data);
	mc.drawLine(x+43,y+12,z,x+40,y+15,z,id,data);
	mc.drawLine(x+31,y+8,z,x+42,y+19,z,id,data);
	mc.drawLine(x+42,y+19,z,x+31,y+30,z,id,data);
	mc.drawLine(x+31,y+30,z,x+43,y+42,z,id,data);
	mc.drawLine(x+39,y+40,z,x+34,y+45,z,id,data);
	mc.drawLine(x+34,y+45,z,x+37,y+48,z,id,data);
	mc.drawLine(x+43,y+42,z,x+37,y+48,z,id,data);
	
	mc.drawLine(x+40,y,z,x+50,y+10,z,id,data);
	mc.drawLine(x+50,y+10,z,x+45,y+15,z,id,data);
	mc.drawLine(x+44,y+16,z,x+44,y+35,z,id,data);
	mc.drawLine(x+44,y+35,z,x+50,y+41,z,id,data);
	mc.drawLine(x+50,y+41,z,x+41,y+50,z,id,data);
	
	//凸
	id=98;data=3;
	y--;
	mc.drawLine(x-1,y,z,x-1,y+10,z,id,data); 
	mc.drawLine(x+11,y,z,x+2,y+10,z,id,data);
	mc.drawLine(x+2,y+10,z,x+6,y+15,z,id,data);
	mc.drawLine(x+7,y+16,z,x+7,y+35,z,id,data);
	mc.drawLine(x+6,y+36,z,x+1,y+41,z,id,data);
	mc.drawLine(x+1,y+41,z,x+10,y+50,z,id,data);
	mc.setBlock(x+13,y+51,z,id,data);
	mc.setBlock(x+14,y+50,z,id,data);
	mc.setBlock(x+37,y+51,z,id,data);
	mc.setBlock(x+36,y+50,z,id,data);
	mc.setBlock(x+25,y+39,z,id,data);
	mc.drawLine(x+21,y+33,z,x+25,y+37,z,id,data);
	mc.drawLine(x+29,y+33,z,x+25,y+37,z,id,data);
	mc.drawLine(x+20,y+32,z,x+20,y+19,z,id,data);
	mc.drawLine(x+30,y+32,z,x+30,y+19,z,id,data);
	mc.drawLine(x+25,y+14,z,x+20,y+19,z,id,data);
	//空
	id=0;data=0;
	mc.drawLine(x+15,y+5,z,x+8,y+12,z,id,data);
	mc.drawLine(x+15,y+6,z,x+9,y+12,z,id,data);
	mc.drawLine(x+16,y+6,z,x+9,y+13,z,id,data);
	mc.drawLine(x+16,y+7,z,x+10,y+13,z,id,data);
}
int main(int argc, char** argv) {
	bool con=mc.ConnectMinecraft("zk","08bd17c1ea594f2684182fd956c2d172");
	if(!con){
		cout<<"失败";
		return 0;
	}
	int x,y,z,id,data;
	mc.fillBlocks(x,y,z,x+50,y+50,z,24,0);
	mc.fillBlocks(x,y,z,x+50,y+50,z+50,24,0);
	mc.fillBlocks(x,y,z,x+50,y,z+50,24,0);
	

	cout<<"坐标";
	cin>>_x>>_y>>_z;

	return 0;
}

  

标签:25,mc,神殿,drawLine,沙漠,19,data,id
From: https://www.cnblogs.com/fushuxuan/p/17536000.html

相关文章

  • 沙漠神殿
    #include<bits/stdc++.h>#include"minecraft.h"#include<Windows.h>usingnamespacestd;TxMinecraftmc;intid=159,data=14;/*structBlock{intx,y,z,id,data,_x,_y,_z;voidb(TxMinecraftmc){mc.setBlock(_x+x,_y......
  • 沙漠神殿(科幻版)
    #include<iostream>#include<string>#include"minecraft.h"usingnamespacestd;TxMinecraftmc;intmain(intargc,char**argv){boolcon=mc.ConnectMinecraft("zk.makeblock.net.cn","4c4ce4431bdc409388e0a110f5aa9d......
  • 沙漠神殿
    #include<iostream>#include"Windows.h"#include"minecraft.h"TxMinecraftmc;usingnamespacestd;intid=179,data=1;voidxian(intx,inty,intz){mc.drawLine(x+10,y,z,x,y+10,z,id,data);mc.drawLine(x,y+10,z,x+6,y+16,z......
  • c++沙漠神殿
    #include<iostream>#include"minecraft.h"#include<string>usingnamespacestd;TxMinecraftmc;intx=0,y=0,z=0;intmain(intargc,char**argv){boolcon=mc.ConnectMinecraft("zk.makeblock.net.cn","a9d44e758f6e4cf8b......
  • 沙漠神殿 (x)
    #include<iostream>#include<string>#include"Windows.h"#include"minecraft.h"TxMinecraftmc;usingnamespacestd;intmain(intargc,char**argv){boolcon=mc.ConnectMinecraft("zk","2839fa7a......
  • 塔克拉玛干沙漠5G基站成为首个700MHz5G超远覆盖基站
    安科瑞虞佳豪近日,在位于新疆巴音郭勒蒙古自治州轮台县的塔克拉玛干沙漠,中国移动新疆公司开通了首个沙漠公路700MHz5G超远覆盖基站,覆盖距离达30公里。新疆移动网络优化中心总经理祁江伟介绍,700MHz网络由中国移动和中国广电共建共享,具有绕射能力强等优势,尤其适合新疆区域地广人稀......
  • 沙漠神殿
    #include<iostream>#include"minecraft.h"usingnamespacestd;TxMinecraftmc;voidnum1(intx,inty,intz,intid,intdata){for(inti=0;i<=10;i++){mc.fillBlocks(x+i,y+i,z+i,x+20-i,y+i,z+20-i,id,data);}id=0;......
  • MC 沙漠神殿**还原
    #include<iostream>#include"minecraft.h"usingnamespacestd;TxMinecraftmc;intx=-864,y=150,z=280;intmain(intargc,char**argv){boolcon=mc.ConnectMinecraft("zk.makeblock.net.cn","a9d44e758f6e4cf8b2da2624156f24......
  • MC沙漠神殿
    #include<iostream>#include"minecraft.h"usingnamespacestd;TxMinecraftmc;voidnum1(intx,inty,intz,intid,intdata){for(inti=0;i<=10;i++){mc.fillBlocks(x+i,y+i,z+i,x+20-i,y+i,z+20-i,id,data);}id=0;......
  • 沙漠神殿
    #include<iostream>#include<string>#include"minecraft.h"usingnamespacestd;TxMinecraftmc;intx,y,z,id,data;boolcon=mc.ConnectMinecraft("zk","919b005179e840e1bf78fef437b2f298");voida(){ mc.fillOffsetB......