Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- inventory(default):
- 1-4: pc1 | pc2 | pc3 | pc4
- 5-8: tess1 | tess2 | tess3 | tess4
- 9-12: modem | quarry | empty | empty
- 13-16: empty | empty | empty | empty
- */
- fillFromArea(slot,x1,z1,x2,z2,y,id):{
- for(x=x1;x<=x2;x=x+1){
- for(z=z1;z<=z2;z=z+1){
- dig(slot,[x,y,z])
- };
- };
- };
- main:{
- while(true){
- navi_setNullPos();
- navi_setSpace([-3, 0, -3], [28, 5, 12]);
- if (getFuelLevel()<1000){
- place($TESSERACT3$,[1,1,1]);
- moveTo([0,1,1],0);
- sleep(2);
- dig($TESSERACT3$,[1,1,1]);
- refuel();
- };
- if (getItemCount($DIRT$)<20){
- navi_setSpace([-3, -2, -3], [28, 5, 12]);
- fillFromArea($DIRT$,8,-1,10,10,-2,$ID_DIRT$);
- navi_setSpace([-3, 0, -3], [28, 5, 12]);
- };
- //placeQuarry(9,1,-2,3,$TESSERACT1$); //p1
- //destroyQuarry(0,1,-2,$TESSERACT1$); //d1
- //placeQuarry(11,1,9,0,$TESSERACT2$); //p2
- //destroyQuarry(11,1,0,$TESSERACT2$); //d2
- //placeQuarry(0,1,11,1,$TESSERACT1$); //p3
- //destroyQuarry(9,1,11,$TESSERACT1$); //d3
- //placeQuarry(-2,1,0,2,$TESSERACT1$); //p4
- //destroyQuarry(-2,1,9,$TESSERACT1$); //d4
- //setup 1 -> setup 2
- destroyQuarry(9,1,11,$TESSERACT2$); //d3
- //destroyQuarry(11,1,0,$TESSERACT2$); //d2
- //move 2
- destroyQuarry(11,1,0,$TESSERACT1$); //d2
- placeQuarry(11,1,9,0,$TESSERACT1$); //p2
- //destroyQuarry(0,1,-2,$TESSERACT1$); //d1
- //placeQuarry(9,1,-2,3,$TESSERACT1$); //p1
- //move 1
- destroyQuarry(0,1,-2,$TESSERACT1$); //d1
- placeQuarry(9,1,-2,3,$TESSERACT1$); //p1
- //destroyQuarry(-2,1,9,$TESSERACT1$); //d4
- //placeQuarry(-2,1,0,2,$TESSERACT1$); //p4
- //move 4
- destroyQuarry(-2,1,9,$TESSERACT1$); //d4
- placeQuarry(-2,1,0,2,$TESSERACT1$); //p4
- //destroyQuarry(9,1,11,$TESSERACT1$); //d3
- //placeQuarry(0,1,11,1,$TESSERACT1$); //p3
- //placeQuarry(11,1,9,0,$TESSERACT2$); //p2
- placeQuarry(0,1,11,1,$TESSERACT2$); //p3
- sleep(770);
- //setup2 -> setup1 && move sensor
- //move 2
- destroyQuarry(11,1,9,$TESSERACT1$); //d2
- placeQuarry(27,1,0,0,$TESSERACT1$); //p2
- //move sensor
- buildSensor(20,1,4);
- sleep(30);
- destroySensor(4,1,4);
- //move 1
- destroyQuarry(9,1,-2,$TESSERACT1$); //d1
- placeQuarry(16,1,-2,3,$TESSERACT1$); //p1
- //move 3
- destroyQuarry(0,1,11,$TESSERACT1$); //d3
- placeQuarry(25,1,11,1,$TESSERACT1$); //p3
- //move 4
- destroyQuarry(-2,1,0,$TESSERACT1$); //d4
- placeQuarry(14,1,9,2,$TESSERACT1$); //p4
- moveTo([17,1,1],0);
- sleep(730);
- }
- };
- buildSensor(x, y, z):{
- place($COMPUTER1$, [x, y + 3, z - 3]);
- peripheral("front", "turnOn");
- place($MODEM$, [x, y + 4, z - 3]);
- place($COMPUTER2$, [x - 3, y, z]);
- peripheral("front", "turnOn");
- place($MODEM$, [x - 3, y + 1, z]);
- place($COMPUTER3$, [x + 3, y, z]);
- peripheral("front", "turnOn");
- place($MODEM$, [x + 3, y + 1, z]);
- place($COMPUTER4$, [x, y + 3, z + 3]);
- peripheral("front", "turnOn");
- place($MODEM$, [x, y + 4, z + 3]);
- };
- destroySensor(x, y, z):{
- dig($MODEM$, [x, y + 4, z - 3], $ID_MODEM$);
- dig($COMPUTER1$, [x, y + 3, z - 3], $ID_COMPUTER$);
- dig($MODEM$, [x - 3, y + 1, z], $ID_MODEM$);
- dig($COMPUTER2$, [x - 3, y, z], $ID_COMPUTER$);
- dig($MODEM$, [x + 3, y + 1, z], $ID_MODEM$);
- dig($COMPUTER3$, [x + 3, y, z], $ID_COMPUTER$);
- dig($MODEM$, [x, y + 4, z + 3], $ID_MODEM$);
- dig($COMPUTER4$, [x, y + 3, z + 3], $ID_COMPUTER$);
- };
- placeQuarry(x, y, z, direction,t1):{
- place($DIRT$,[x,y-1,z]);
- place($QUARRY$, [x, y, z], direction);
- place(t1, [x, y + 1, z]);
- };
- destroyQuarry(x,y,z,t1):{
- dig(t1, [x, y + 1, z], $ID_TESSERACT$);
- dig($QUARRY$, [x, y, z], $ID_QUARRY$);
- dig($DIRT$,[x,y-1,z],$ID_DIRT$);
- };
- init:{
- $COMPUTER1$ = 1;
- $COMPUTER2$ = 2;
- $COMPUTER3$ = 3;
- $COMPUTER4$ = 4;
- $TESSERACT1$ = 5;
- $TESSERACT2$ = 6;
- $TESSERACT3$ = 7;
- $TESSERACT4$ = 8;
- $MODEM$ = 9;
- $QUARRY$ = 10;
- $DIRT$ = 11;
- $ID_MODEM$ = "ComputerCraft:CC-Peripheral";
- $ID_COMPUTER$ = "ComputerCraft:CC-Computer";
- $ID_TESSERACT$ = "ThermalExpansion:Tesseract";
- $ID_QUARRY$ = "BuildCraft|Builders:machineBlock";
- $ID_HOPPER$ = "EnderIO:blockVacuumChest";
- $ID_DIRT$ = "minecraft:dirt"
- };
- //pastebin run 0YB9PsQV startup={files={lib_defaultFunctions=<pb:BuLTbHg6>,quarryLib=<pb:Qwa20MrA>,quarry.cmds=<pb:WbYhHPrX>},delay=10,cmds={{'quarryLib','quarry.cmds',$arg1$,$arg2$}}} reboot=true label=<input:'Label'>
- //cp disk/pastebin pastebin
Add Comment
Please, Sign In to add comment