排房
#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,10,1,17,1); mc.setOffsetBlock(2,10,1,17,1); mc.setOffsetBlock(4,10,1,17,1); mc.setOffsetBlock(0,10,5,17,1); mc.setOffsetBlock(2,10,5,17,1); mc.setOffsetBlock(4,10,5,17,1); mc.setOffsetBlock(-2,10,3,17,1); mc.setOffsetBlock(0+16,10,1,17,1); mc.setOffsetBlock(2+16,10,1,17,1); mc.setOffsetBlock(4+16,10,1,17,1); mc.setOffsetBlock(0+16,10,5,17,1); mc.setOffsetBlock(2+16,10,5,17,1); mc.setOffsetBlock(4+16,10,5,17,1); mc.setOffsetBlock(22,10,3,17,1); mc.fillOffsetBlocks(-1,10,2,21,10,4,5,5); mc.fillOffsetBlocks(0,10,3,20,10,3,0,0); mc.fillOffsetBlocks(6,10,2,14,10,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); mc.offsetDrawLine(0,9,3,5,9,3,5,1); mc.offsetDrawLine(16,9,3,21,9,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); } } } void b(){ mc.fillOffsetBlocks(-2,11,1,4,11,5,44,0); mc.fillOffsetBlocks(15,11,1,22,11,5,44,0); for(int i=-5;i<30;i++){ if(i==0||i==16){ mc.setOffsetBlock(i,9,2,134,14); mc.setOffsetBlock(i+2,9,2,134,14); mc.setOffsetBlock(i+4,9,2,134,14); mc.setOffsetBlock(i,9,4,134,7); mc.setOffsetBlock(i+2,9,4,134,7); mc.setOffsetBlock(i+4,9,4,134,7); } if(i==-1||i==15){ mc.setOffsetBlock(i,10,1,126,8); mc.setOffsetBlock(i+2,10,1,126,8); mc.setOffsetBlock(i+4,10,1,126,8); mc.setOffsetBlock(i+6,10,1,126,8); mc.setOffsetBlock(i,10,5,126,8); mc.setOffsetBlock(i+2,10,5,126,8); mc.setOffsetBlock(i+4,10,5,126,8); mc.setOffsetBlock(i+6,10,5,126,8); } if(i==-2||i==16){ mc.setOffsetBlock(i,11,0,98,3); mc.setOffsetBlock(i+2,11,0,98,3); mc.setOffsetBlock(i+4,11,0,98,3); mc.setOffsetBlock(i+6,11,0,98,3); mc.setOffsetBlock(i+1,10,0,44,13); mc.setOffsetBlock(i+1,11,0,44,5); mc.setOffsetBlock(i+3,10,0,44,13); mc.setOffsetBlock(i+3,11,0,44,5); mc.setOffsetBlock(i+5,10,0,44,13); mc.setOffsetBlock(i+5,11,0,44,5); mc.setOffsetBlock(i+7,10,0,44,13); mc.setOffsetBlock(i+7,11,0,44,5); mc.setOffsetBlock(i-1,11,0,44,13); mc.setOffsetBlock(i-1,12,0,44,5); mc.setOffsetBlock(i+23,11,0,44,13); mc.setOffsetBlock(i+23,12,0,44,5); mc.setOffsetBlock(i,11,6,98,3); mc.setOffsetBlock(i+2,11,6,98,3); mc.setOffsetBlock(i+4,11,6,98,3); mc.setOffsetBlock(i+6,11,6,98,3); mc.setOffsetBlock(i+1,10,6,44,13); mc.setOffsetBlock(i+1,11,6,44,5); mc.setOffsetBlock(i+3,10,6,44,13); mc.setOffsetBlock(i+3,11,6,44,5); mc.setOffsetBlock(i+5,10,6,44,13); mc.setOffsetBlock(i+5,11,6,44,5); mc.setOffsetBlock(i+7,10,6,44,13); mc.setOffsetBlock(i+7,11,6,44,5); mc.setOffsetBlock(i+15,10,6,44,13); mc.setOffsetBlock(i+15,11,6,44,5); mc.setOffsetBlock(i-1,11,6,44,13); mc.setOffsetBlock(i-1,12,6,44,5); mc.setOffsetBlock(i+23,11,6,44,13); mc.setOffsetBlock(i+23,12,6,44,5); } } mc.fillOffsetBlocks(4,15,1,17,15,5,44,0); mc.setOffsetBlock(0,8,2,134,14); mc.setOffsetBlock(20,8,2,134,14); mc.setOffsetBlock(0,8,4,134,7); mc.setOffsetBlock(20,8,4,134,7); mc.setOffsetBlock(0,9,1,134,2); mc.setOffsetBlock(0,9,5,134,3); mc.setOffsetBlock(20,9,1,134,2); mc.setOffsetBlock(20,9,5,134,3); mc.offsetDrawLine(-1,9,3,-1,8,3,134,4); mc.offsetDrawLine(21,8,3,21,9,3,134,5); mc.setOffsetBlock(-2,9,3,134,0); mc.setOffsetBlock(22,9,3,134,1); mc.offsetDrawLine(-2,10,2,-2,10,1,126,8); mc.offsetDrawLine(-2,10,4,-2,10,5,126,8); mc.offsetDrawLine(22,10,2,22,10,1,126,8); mc.offsetDrawLine(22,10,4,22,10,5,126,8); mc.setOffsetBlock(15,9,3,5,1); mc.setOffsetBlock(21,12,0,0,0); mc.setOffsetBlock(21,12,6,0,0); mc.setOffsetBlock(23,11,0,0,0); mc.setOffsetBlock(23,10,0,0,0); mc.setOffsetBlock(23,11,6,0,0); mc.setOffsetBlock(23,10,6,0,0); mc.setOffsetBlock(15,12,0,0,0); mc.setOffsetBlock(15,11,0,0,0); mc.setOffsetBlock(15,12,6,0,0); mc.setOffsetBlock(15,11,6,0,0); mc.setOffsetBlock(15,10,0,44,13); mc.setOffsetBlock(15,11,0,44,5); mc.setOffsetBlock(15,10,6,44,13); mc.setOffsetBlock(15,11,6,44,5); mc.setOffsetBlock(13,10,6,0,0); mc.setOffsetBlock(13,11,6,0,0); mc.setOffsetBlock(23,11,0,44,13); mc.setOffsetBlock(23,12,0,44,5); mc.setOffsetBlock(23,11,6,44,13); mc.setOffsetBlock(23,12,6,44,5); mc.offsetDrawLine(-3,11,1,-3,11,5,98,3); mc.setOffsetBlock(-3,11,2,44,5); mc.setOffsetBlock(-3,10,2,44,13); mc.setOffsetBlock(-3,11,4,44,5); mc.setOffsetBlock(-3,10,4,44,13); mc.offsetDrawLine(23,11,1,23,11,5,98,3); mc.setOffsetBlock(23,11,2,44,5); mc.setOffsetBlock(23,10,2,44,13); mc.setOffsetBlock(23,11,4,44,5); mc.setOffsetBlock(23,10,4,44,13); mc.setOffsetBlock(-2,11,1,44,13); mc.setOffsetBlock(-2,12,1,98,0); mc.setOffsetBlock(-2,11,5,44,13); mc.setOffsetBlock(-2,12,5,98,0); mc.setOffsetBlock(22,11,1,44,13); mc.setOffsetBlock(22,12,1,98,0); mc.setOffsetBlock(22,11,5,44,13); mc.setOffsetBlock(22,12,5,98,0); mc.offsetDrawLine(0,11,1,0,11,5,155,0); mc.offsetDrawLine(2,11,1,2,11,5,155,0); mc.offsetDrawLine(4,11,1,4,11,5,155,0); mc.offsetDrawLine(16,11,1,16,11,5,155,0); mc.offsetDrawLine(18,11,1,18,11,5,155,0); mc.offsetDrawLine(20,11,1,20,11,5,155,0); mc.fillOffsetBlocks(0,11,2,5,11,4,155,0); mc.fillOffsetBlocks(15,11,2,20,11,4,155,0); mc.offsetDrawLine(0,12,3,5,12,3,155,0); mc.offsetDrawLine(15,12,3,20,12,3,155,0); mc.setOffsetBlock(0,12,2,44,7); mc.setOffsetBlock(2,12,2,44,7); mc.setOffsetBlock(4,12,2,44,7); mc.setOffsetBlock(0,12,4,44,7); mc.setOffsetBlock(2,12,4,44,7); mc.setOffsetBlock(4,12,4,44,7); mc.setOffsetBlock(16,12,2,44,7); mc.setOffsetBlock(18,12,2,44,7); mc.setOffsetBlock(20,12,2,44,7); mc.setOffsetBlock(16,12,4,44,7); mc.setOffsetBlock(18,12,4,44,7); mc.setOffsetBlock(20,12,4,44,7); mc.offsetDrawLine(-1,11,2,-1,11,4,44,13); mc.offsetDrawLine(-1,12,2,-1,12,4,98,0); mc.offsetDrawLine(21,11,2,21,11,4,44,13); mc.offsetDrawLine(21,12,2,21,12,4,98,0); mc.setOffsetBlock(22,11,3,155,0); mc.setOffsetBlock(-2,11,3,155,0); mc.offsetDrawLine(0,13,3,5,13,3,98,0); mc.offsetDrawLine(15,13,3,20,13,3,98,0); mc.setOffsetBlock(-1,13,3,109,4); mc.setOffsetBlock(-1,14,3,109,0); mc.setOffsetBlock(0,14,3,109,5); mc.setOffsetBlock(21,13,3,109,5); mc.setOffsetBlock(21,14,3,109,1); mc.setOffsetBlock(20,14,3,109,4); mc.setOffsetBlock(-1,12,3,98,3); mc.setOffsetBlock(21,12,3,98,3); mc.offsetDrawLine(5,14,1,5,14,2,126,8); mc.offsetDrawLine(5,14,4,5,14,5,126,8); mc.offsetDrawLine(16,14,1,16,14,2,126,8); mc.offsetDrawLine(16,14,4,16,14,5,126,8); mc.offsetDrawLine(8,15,1,8,15,5,155,0); mc.offsetDrawLine(10,15,1,10,15,5,155,0); mc.offsetDrawLine(12,15,1,12,15,5,155,0); mc.offsetDrawLine(14,15,1,14,15,5,155,0); mc.offsetDrawLine(16,15,1,16,15,5,155,0); for(int i=0;i<7;i++){ if(i==2||i==4){ mc.offsetDrawLine(8,16,i,8,16,i,44,7); mc.offsetDrawLine(10,16,i,10,16,i,44,7); mc.offsetDrawLine(12,16,i,12,16,i,44,7); mc.offsetDrawLine(14,16,i,14,16,i,44,7); mc.offsetDrawLine(16,16,i,16,16,i,44,7); } } mc.fillOffsetBlocks(5,15,2,15,15,4,155,0); mc.fillOffsetBlocks(5,15,3,15,16,3,155,0); /* mc.setOffsetBlock(4,16,1,44,5); mc.setOffsetBlock(4,15,1,44,13); mc.setOffsetBlock(4,16,5,44,5); mc.setOffsetBlock(4,15,5,44,13); mc.setOffsetBlock(15,16,1,44,5); mc.setOffsetBlock(15,15,1,44,13); mc.setOffsetBlock(15,16,5,44,5); mc.setOffsetBlock(15,15,5,44,13); mc.offsetDrawLine(5,16,2,5,16,4,98,0); mc.offsetDrawLine(14,16,2,14,16,4,98,0); mc.setOffsetBlock(5,15,2,44,13); mc.setOffsetBlock(14,15,2,44,13); mc.setOffsetBlock(5,15,4,44,13); mc.setOffsetBlock(14,15,4,44,13); mc.setOffsetBlock(3,15,1,98,3); mc.setOffsetBlock(3,15,3,98,3); mc.setOffsetBlock(3,15,5,98,3); mc.setOffsetBlock(3,15,2,44,7); mc.setOffsetBlock(3,15,4,44,7); mc.setOffsetBlock(3,14,2,44,13); mc.setOffsetBlock(3,14,4,44,13); mc.setOffsetBlock(16,15,2,44,7); mc.setOffsetBlock(16,15,4,44,7); mc.setOffsetBlock(16,14,2,44,13); mc.setOffsetBlock(16,14,4,44,13); mc.setOffsetBlock(16,15,1,98,3); mc.setOffsetBlock(16,15,3,98,3); mc.setOffsetBlock(16,15,5,98,3); mc.setOffsetBlock(5,16,3,98,3); mc.setOffsetBlock(14,16,3,98,3); mc.offsetDrawLine(5,17,3,13,17,3,98,0); mc.setOffsetBlock(3,17,3,109,4); mc.setOffsetBlock(3,18,3,109,0); mc.setOffsetBlock(4,18,3,109,5); mc.setOffsetBlock(12,17,3,109,5); mc.setOffsetBlock(12,18,3,109,1); mc.setOffsetBlock(11,18,3,109,4);*/ for(int i=0;i<10;i++){ if(i==0||i==6){ mc.setOffsetBlock(5,14,i,126,8); mc.setOffsetBlock(7,14,i,126,8); mc.setOffsetBlock(9,14,i,126,8); mc.setOffsetBlock(11,14,i,126,8); mc.setOffsetBlock(13,14,i,126,8); mc.setOffsetBlock(15,14,i,126,8); mc.setOffsetBlock(4,15,i,98,3); mc.setOffsetBlock(6,15,i,98,3); mc.setOffsetBlock(8,15,i,98,3); mc.setOffsetBlock(10,15,i,98,3); mc.setOffsetBlock(12,15,i,98,3); mc.setOffsetBlock(14,15,i,98,3); mc.setOffsetBlock(16,15,i,98,3); } if(i==0||i==6){ mc.setOffsetBlock(3,15,i,44,13); mc.setOffsetBlock(3,16,i,44,5); mc.setOffsetBlock(5,15,i,44,5); mc.setOffsetBlock(5,14,i,44,13); mc.setOffsetBlock(7,15,i,44,5); mc.setOffsetBlock(7,14,i,44,13); mc.setOffsetBlock(9,15,i,44,5); mc.setOffsetBlock(9,14,i,44,13); mc.setOffsetBlock(11,15,i,44,5); mc.setOffsetBlock(11,14,i,44,13); mc.setOffsetBlock(13,15,i,44,5); mc.setOffsetBlock(13,14,i,44,13); mc.setOffsetBlock(15,15,i,44,5); mc.setOffsetBlock(15,14,i,44,13); mc.setOffsetBlock(17,15,i,44,13); mc.setOffsetBlock(17,16,i,44,5); } } mc.fillOffsetBlocks(15,15,2,15,16,4,0,0); mc.fillOffsetBlocks(5,15,2,5,16,4,98,0); mc.fillOffsetBlocks(15,15,2,15,16,4,98,0); mc.setOffsetBlock(5,16,3,98,3); mc.setOffsetBlock(15,16,3,98,3); mc.offsetDrawLine(4,15,3,5,15,3,155,0); } int main() { if(!con){ cout<<"连接失败"; } cin>>x>>y>>z; mc.setVariable(x,y,z); a(); b(); //2300 111 5903 return 0; }