首页 > 其他分享 >排房

排房

时间:2023-04-16 10:11:53浏览次数:21  
标签:mc 17 16 排房 fillOffsetBlocks setOffsetBlock 14

#include <iostream>
#include <string>
#include "minecraft.h"
using namespace std;
TxMinecraft mc;
int x,y,z,id,data;
bool con=mc.ConnectMinecraft("zk","919b005179e840e1bf78fef437b2f298");
void a(){
	mc.setOffsetBlock(0,9,1,17,1);
	mc.setOffsetBlock(2,9,1,17,1);
	mc.setOffsetBlock(4,9,1,17,1);
	mc.setOffsetBlock(0,9,5,17,1);
	mc.setOffsetBlock(2,9,5,17,1);
	mc.setOffsetBlock(4,9,5,17,1);
	mc.setOffsetBlock(-2,9,3,17,1);
	mc.setOffsetBlock(0+16,9,1,17,1);
	mc.setOffsetBlock(2+16,9,1,17,1);
	mc.setOffsetBlock(4+16,9,1,17,1);
	mc.setOffsetBlock(0+16,9,5,17,1);
	mc.setOffsetBlock(2+16,9,5,17,1);
	mc.setOffsetBlock(4+16,9,5,17,1);
	mc.setOffsetBlock(22,9,3,17,1);
	mc.fillOffsetBlocks(-1,9,2,21,9,4,5,5);
	mc.fillOffsetBlocks(0,9,3,20,9,3,0,0);
	mc.fillOffsetBlocks(6,9,2,14,9,4,0,0);
	mc.setOffsetBlock(6,14,1,17,1);
	mc.setOffsetBlock(8,14,1,17,1);
	mc.setOffsetBlock(10,14,1,17,1);
	mc.setOffsetBlock(12,14,1,17,1);
	mc.setOffsetBlock(14,14,1,17,1);
	mc.setOffsetBlock(6,14,5,17,1);
	mc.setOffsetBlock(8,14,5,17,1);
	mc.setOffsetBlock(10,14,5,17,1);
	mc.setOffsetBlock(12,14,5,17,1);
	mc.setOffsetBlock(14,14,5,17,1);
	mc.setOffsetBlock(4,14,3,17,1);
	mc.setOffsetBlock(16,14,3,17,1);
	mc.fillOffsetBlocks(5,14,2,15,14,4,5,5);
	mc.fillOffsetBlocks(6,14,3,14,14,3,0,0);
	mc.offsetDrawLine(6,13,3,14,13,3,5,1);
	for(int i=0;i<30;i++){
		if(i==20||i==0||i==6||i==14){
			//0
			mc.offsetDrawLine(0+i,0,1,0+i,0,2,98,0);
			mc.offsetDrawLine(0+i,0,4,0+i,0,5,98,0);
			mc.setOffsetBlock(0+i,0,0,109,2);
			mc.setOffsetBlock(0+i,0,6,109,3);
			mc.setOffsetBlock(0+i,0,3,98,3);
			//1
			mc.setOffsetBlock(0+i,1,1,109,6);
			mc.setOffsetBlock(0+i,1,2,98,3);
			mc.setOffsetBlock(0+i,1,5,109,6);
			mc.setOffsetBlock(0+i,1,4,98,3);
			//2
			mc.setOffsetBlock(0+i,2,1,109,2);
			mc.setOffsetBlock(0+i,2,2,109,3);
			mc.setOffsetBlock(0+i,2,4,109,2);
			mc.setOffsetBlock(0+i,2,5,109,3);
			//3
			mc.setOffsetBlock(0+i,3,2,139,0);
			mc.setOffsetBlock(0+i,3,4,139,0);
			//柱子
			mc.offsetDrawLine(0+i,1,3,0+i,8,3,251,14);
			if(i==6||i==14){
			mc.offsetDrawLine(0+i,9,3,0+i,12,3,251,14);
		}
		}
		
		if(i==1||i==15){
			mc.offsetDrawLine(i,8,3,i+4,8,3,236,0);
			mc.offsetDrawLine(i+1,8,3,i+3,8,3,251,11);
			mc.setOffsetBlock(i,7,3,53,5); 
			mc.setOffsetBlock(i,6,3,53,5);
			mc.setOffsetBlock(i+1,7,3,53,5);
			mc.setOffsetBlock(i+2,7,3,126,8);
			mc.setOffsetBlock(i+4,7,3,53,4); 
			mc.setOffsetBlock(i+4,6,3,53,4);
			mc.setOffsetBlock(i+3,7,3,53,4);
			
		}
		if(i==7){
			mc.setOffsetBlock(i,9,3,53,4);
			mc.setOffsetBlock(i+1,9,3,126,8);
			mc.setOffsetBlock(i+2,9,3,53,5);
			mc.setOffsetBlock(i+3,9,3,126,8);
			mc.setOffsetBlock(i+4,9,3,53,4);
			mc.setOffsetBlock(i+5,9,3,126,8);
			mc.setOffsetBlock(i+6,9,3,53,5);
			mc.setOffsetBlock(i,8,3,53,5);
			mc.setOffsetBlock(i,7,3,53,5);
			mc.setOffsetBlock(i+1,8,3,53,5);
			mc.offsetDrawLine(2+i,8,3,4+i,8,3,126,8);
			mc.setOffsetBlock(i+6,8,3,53,4);
			mc.setOffsetBlock(i+6,7,3,53,4);
			mc.setOffsetBlock(i+5,8,3,53,4);
			mc.fillOffsetBlocks(i,10,3,i+6,12,3,236,0);
			mc.setOffsetBlock(i,11,3,247,0);
			mc.setOffsetBlock(i+6,11,3,247,0);
			mc.fillOffsetBlocks(i+1,10,3,i+5,12,3,5,5);
			mc.offsetDrawLine(2+i,11,3,4+i,11,3,251,11);
		}
			
	
	}
			
}
int main() {
    if(!con){
        cout<<"连接失败";
    }
    cin>>x>>y>>z;
    mc.setVariable(x,y,z);
    a();
   
    return 0;
}

  

标签:mc,17,16,排房,fillOffsetBlocks,setOffsetBlock,14
From: https://www.cnblogs.com/As10016/p/17322587.html

相关文章

  • mc排房
    #include<iostream>#include"minecraft.h"usingnamespacestd;TxMinecraftmc;intx=1865,y=78,z=6086;intmain(intargc,char**argv){boolcon=mc.ConnectMinecraft("zk.makeblock.net.cn","a9d44e758f6e4cf8b2da2624156f24......