首页 > 其他分享 >MC 沙漠神殿**还原

MC 沙漠神殿**还原

时间:2023-04-15 17:34:25浏览次数:28  
标签:MC mc 神殿 int 还原 include con

#include <iostream>
#include "minecraft.h"
using namespace std;
TxMinecraft mc;
int x=-864,y=150,z=280;
int main(int argc, char** argv) {
    bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","a9d44e758f6e4cf8b2da2624156f24d3");
    if(!con){
        cout<<"连接失败"<<mc.Back_data;
        return 0;
	}
    mc.fillBlocks(x-1,y,z-1,x+22,y+11,z+11,0,0);
    mc.fillBlocks(x,y,z,x+20,y,z+20,24,0);
    int i=1;
    for(i;i<10;i++){
    	if(i==4){
    		mc.fillBlocks(x+i,y+i,z+i,x+(20-i),y+i,z+(20-i),24,0);
    		mc.fillBlocks(x+9,y+i,z+9,x+11,y+i,z+11,0,0);
		}else{
			mc.fillBlocks(x+i,y+i,z+i,x+(20-i),y+i,z+(20-i),24,0);
			mc.fillBlocks(x+i+1,y+i,z+i+1,x+((20-i)-1),y+i,z+((20-i)-1),0,0);
		}
	}
    mc.setBlock(x+10,y,z+7,159,1);
    mc.setBlock(x+10,y,z+8,159,1);
    mc.setBlock(x+9,y,z+9,159,1);
    mc.setBlock(x+11,y,z+9,159,1);
    mc.setBlock(x+12,y,z+10,159,1);
    mc.setBlock(x+13,y,z+10,159,1);
    mc.setBlock(x+8,y,z+10,159,1);
    mc.setBlock(x+7,y,z+10,159,1);
    mc.setBlock(x+9,y,z+11,159,1);
    mc.setBlock(x+11,y,z+11,159,1);
    mc.setBlock(x+10,y,z+12,159,1);
    mc.setBlock(x+10,y,z+13,159,1);
    mc.setBlock(x+10,y,z+10,159,11);
    mc.fillBlocks(x+5,y+1,z+1,x+11,y+4,z+2,24,0);
    mc.fillBlocks(x+5,y+3,z+3,x+11,y+4,z+3,24,0);
    mc.fillBlocks(x+5,y+1,z+19,x+11,y+4,z+18,24,0);
    mc.fillBlocks(x+5,y+1,z+17,x+11,y+4,z+17,24,0);
    mc.fillBlocks(x+9,y+5,z+5,x+11,y+7,z+5,24,2);
    mc.fillBlocks(x+10,y+5,z+5,x+10,y+6,z+6,0,0);
    mc.fillBlocks(x+9,y+7,z+6,x+11,y+7,z+6,24,0);
    mc.fillBlocks(x+9,y+5,z+15,x+11,y+7,z+15,24,2);
    mc.fillBlocks(x+10,y+5,z+15,x+10,y+6,z+14,0,0);
    mc.fillBlocks(x+9,y+7,z+13,x+11,y+7,z+14,24,0);
    mc.fillBlocks(x+1,y+1,z+5,x+3,y+3,z+15,24,0);
    mc.fillBlocks(x+2,y+1,z+5,x+2,y+2,z+15,0,0);
    mc.fillBlocks(x+0,y+1,z+8,x+4,y+4,z+8,24,0);
    mc.fillBlocks(x+0,y+1,z+12,x+4,y+4,z+12,24,0);
    mc.fillBlocks(x+0,y+4,z+8,x+4,y+4,z+12,24,0);
    mc.fillBlocks(x+0,y+4,z+8,x+1,y+4,z+12,24,2);
    mc.fillBlocks(x+1,y+1,z+9,x+1,y+3,z+11,24,2);
    mc.fillBlocks(x+1,y+1,z+10,x+1,y+2,z+10,0,0);
    mc.fillBlocks(x+2,y+1,z+9,x+4,y+3,z+11,0,0);
    mc.fillBlocks(x+0,y+4,z+8,x+0,y+6,z+12,24,2);
    mc.setBlock(x+0,y+6,z+8,0,0);
    mc.setBlock(x+0,y+6,z+12,0,0);
    mc.setBlock(x+0,y+5,z+9,159,1);
    mc.setBlock(x+0,y+5,z+11,159,1);
    mc.setBlock(x+0,y+5,z+10,24,1);
    mc.drawLine(x+8,y+1,z+8,x+8,y+3,z+8,24,2);
    mc.drawLine(x+12,y+1,z+8,x+12,y+3,z+8,24,2);
    mc.drawLine(x+8,y+1,z+12,x+8,y+3,z+12,24,2);
    mc.drawLine(x+12,y+1,z+12,x+12,y+3,z+12,24,2);
    z=280;
    for(i=0;i<2;i++){
    	mc.fillBlocks(x+0,y+1,z+0,x+4,y+5,z+4,0,0);
    	mc.fillBlocks(x+0,y+0,z+0,x+4,y+9,z+4,24,0);
    	mc.fillBlocks(x+1,y+1,z+1,x+3,y+8,z+3,0,0);
    	mc.setBlock(x+2,y+1,z+1,24,0);
    	mc.setBlock(x+2,y+1,z+2,128,3);
    	mc.setBlock(x+2,y+2,z+1,44,1);
    	mc.setBlock(x+3,y+1,z+1,24,0);
    	mc.setBlock(x+3,y+2,z+1,24,0);
    	mc.setBlock(x+3,y+1,z+2,24,0);
    	mc.setBlock(x+3,y+2,z+2,24,0);
    	mc.drawLine(x+4,y+3,z+2,x+4,y+6,z+2,0,0);
    	mc.setBlock(x+4,y+3,z+2,128,0);
    	mc.setBlock(x+5,y+4,z+2,128,0);
    	mc.fillBlocks(x+1,y+10,z+1,x+3,y+10,z+3,24,0);
    	mc.setBlock(x+0,y+10,z+2,128,0);
    	mc.setBlock(x+4,y+10,z+2,128,1);
    	mc.setBlock(x+2,y+10,z+0,128,2);
    	mc.setBlock(x+2,y+10,z+4,128,3);
    	mc.fillBlocks(x+0,y+2,z+1,x+0,y+8,z+3,24,2);
    	mc.drawLine(x+0,y+7,z+1,x+0,y+7,z+3,159,1);
    	mc.setBlock(x+0,y+6,z+1,159,1);
    	mc.setBlock(x+0,y+6,z+3,159,1);
    	mc.setBlock(x+0,y+5,z+2,159,1);
    	mc.setBlock(x+0,y+4,z+1,159,1);
    	mc.setBlock(x+0,y+4,z+3,159,1);
    	mc.setBlock(x+0,y+3,z+2,159,1);
    	mc.setBlock(x+0,y+2,z+2,159,1);
    	z+=16;
	}
    z=280;
    for(i=0;i<2;i++){
    	mc.drawLine(x+1,y+7,z+0,x+3,y+7,z+0,159,1);
    	mc.setBlock(x+1,y+6,z+0,159,1);
    	mc.setBlock(x+3,y+6,z+0,159,1);
    	mc.setBlock(x+2,y+5,z+0,159,1);
    	mc.setBlock(x+1,y+4,z+0,159,1);
    	mc.setBlock(x+3,y+4,z+0,159,1);
    	mc.setBlock(x+2,y+3,z+0,159,1);
    	mc.setBlock(x+2,y+2,z+0,159,1);
    	z+=20;
	}
    z=280;
    mc.fillBlocks(x+2,y+1,z+3,x+2,y+2,z+16,0,0);
    
    mc.fillBlocks(x+2,y+1,z+19,x+3,y+2,z+17,0,0);
    mc.fillBlocks(x+3,y+1,z+19,x+3,y+2,z+18,24,0);
    mc.setBlock(x+2,y+1,z+18,128,2);
    mc.setBlock(x+2,y+1,z+19,24,0);
    mc.setBlock(x+2,y+2,z+19,44,1);
    
    mc.fillBlocks(x+5,y+1,z+16,x+17,y+2,z+16,0,0);
    for(i=0;i<13;i+=2){
    	mc.setBlock(x+5+i,y+1,z+4,24,2);
    	mc.setBlock(x+5+i,y+2,z+4,24,1);
    	mc.setBlock(x+5+i,y+1,z+16,24,2);
    	mc.setBlock(x+5+i,y+2,z+16,24,1);
	}
    mc.drawLine(x+5,y+3,z+4,x+17,y+3,z+4,24,0);
    
    
    
    
    
    return 0;
    }

  

标签:MC,mc,神殿,int,还原,include,con
From: https://www.cnblogs.com/wangyueshuo/p/17321486.html

相关文章

  • 步进电机常见丢步原因分析及解决方法---TMC5160/TMC4361
    在一些自动控制领域中,步进电机的使用仍占着相当大的比例,步进电机与驱动电路组成的开环数控系统,因其简单的结构、低廉的价格和可靠的性能,目前已在很多行业中(工业自动化、医疗自动化、纺织自动化等)广泛应用。步进电机经常被用于精确定位的场合,因而保证电机不发生失步至关重要。......
  • MCP2542FDT-E/MFVAO符合各种汽车要求,设计用于CAN 2.0和CAN FD网络之间的接口。
    MCP2542FDT-E/MFVAOCANFD收发器设计用作物理总线和CAN协议控制器之间的接口。这些收发器具有适用于CAN协议控制器的差分传输和接收能力。MCP2542CANFD收发器具有出色的环路延迟对称性,可支持面向CANFD的高达8Mbps的数据速率。这些收发器可在高压尖峰和CAN控制器之间提供缓冲。......
  • CPU, mpu mcu soc 的区别
      从它们的名字上看以及 从网上的资料上看,我觉得他们没有任何的区别。都是指的处理单元。但是在实际使用中,人们形成了约定俗称的叫法。比如: mcu :指的是单片机,芯片包含了ramflash以及外设接口。mpu:指的是cortexA系列,包含了cpu,以及外设接口,但是......
  • linux中systemctl管理go服务 (gin)git部署
    go安装下载 https://golang.google.cn/dl/解压至指定目录,一般到/usr/localsudotar-C/usr/local-xzfgo**.linux-amd64.tar.gz设置环境变量#修改~/.bashrc文件$sudogedit~/.bashrc#在该文件最后一行插入$exportPATH=$PATH:/usr/local/go/bin$source~/......
  • org.apache.coyote.tomcat5.CoyoteResponseFacade.sendRedirec
    org.apache.coyote.tomcat5.CoyoteResponseFacade.sendRedirect(CoyoteResponseFacade.java:352)org.apache.jsp.test_jsp._jspService(test_jsp.java:62)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)javax.servlet.http.HttpServlet.service(HttpSer......
  • Tomcat 5.5部署jsp项目—jsp乱码问题的解决
    1、最基本的乱码问题。这个乱码问题是最简单的乱码问题。一般新会出现。就是页面编码不一致导致的乱码。<%@pagelanguage="java"pageEncoding="UTF-8"%><%@pagecontentType="text/html;charset=iso8859-1"%><html><head><title>中文问题</title><......
  • tomcat配置全局和私有JNDI数据源
    本人CentOS上部署了tomcat,在配置JNDI数据源时,先后遇到了两种报错。第一种,CannotcreateJDBCdriverofclass''forconnectURL'null',这个根据我个人理解是没有获取到数据源的任何信息,只要根据配置的方式(全局或私有)检查一下配置文件即可;第二种,CannotcreatePoo......
  • tinymce来自word文档粘贴的优化
    前提条件src/components/TEditor.vue里,引入自带的paste插件在配置项(init)里的plugins里添加paste关于粘贴图片自动上传【效果】用户复制一个本地图片或者截图后,在编辑器里粘贴,首先以blob文件流形式展示;然后执行自动上传到接口,并在拿到图片地址后将blob文件流地址替换成真......
  • Tomcat
    问题及解决严重[localhost-startStop-1]org.apache.jasper.EmbeddedServletOptions.<init>ThescratchDiryouspecified:[/Users/Jack/Desktop/apache-tomcat-8.5.32/work/Catalina/localhost/host-manager]isunusable.ThescratchDiryouspecifiedisunusable.......
  • 对比不同子载波数量下的OFDM和FBMC频谱matlab仿真
    1.算法仿真效果matlab2022a仿真结果如下:2.算法涉及理论知识概要OFDM(OrthogonalFrequencyDivisionMultiplexing)即正交频分复用技术,实际上OFDM是MCM(MultiCarrierModulation),多载波调制的一种。通过频分复用实现高速串行数据的并行传输,它具有较好的抗多径衰落的能力,能够......