94Lord

Untitled

Oct 4th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.95 KB | None | 0 0
  1.  
  2.  
  3. Version = 1603
  4.  
  5.  
  6.  
  7. momfuellevel = 0
  8. aufsammeln = 40
  9. fuellevel = 100
  10. count = 0
  11. anzahl1 = 0
  12. anzahl2 = 0
  13. treeblock = "minecraft:log"
  14. steinblock = "minecraft:cobblestone"
  15. wasser1 = "minecraft:water","minecraft:flowing_water","minecraft:flowing_lava"
  16. chestdistance = 5
  17. zaehler = 0
  18. zaehler1 = 0
  19. zaehler2 = 0
  20. zaehler3 = 0
  21. zaehler4 = 30
  22. zaehler5 = 0
  23. zaehler6 = 10
  24. zaehler7 = 0
  25. zaehler8 = 0
  26. zaehler10 = 0
  27. Kohleanz = 19
  28. j = 0
  29.  
  30.  
  31. -- (Standart)--
  32.  
  33. function refuel()
  34.  
  35. if fuellevel > 5000 then
  36. fuellevel = 3000
  37. end
  38.  
  39. if fuellevel < 11 then
  40. fuellevel = 60
  41. end
  42. fuellevel = fuellevel + 1
  43. if(turtle.getFuelLevel() < fuellevel) then
  44. turtle.select(16)
  45. if turtle.getItemCount(16) > 0 then
  46.  
  47. if turtle.getItemDetail(16).name == "minecraft:coal" then
  48. turtle.refuel(1)
  49. momfuellevel = turtle.getFuelLevel()
  50. print("Aufgetankt "..momfuellevel.." Fuel im Tank")
  51. print("Neuer Sollwert "..fuellevel.." Fuel")
  52. refuel()
  53. turtle.select(1)
  54. else
  55. print("Falsches Iteam im Slot 16")
  56. Sortieren()
  57. end
  58.  
  59. else
  60. if turtle.getFuelLevel() < 100 then
  61. print("WARNUNG KEIN FUEL (Slot 16) ")
  62. Sortieren()
  63. end
  64. print("Neuer Sollwert "..fuellevel.." Fuel")
  65. fuellevel = fuellevel - 50
  66. for i=1,4 do
  67. turtle.turnRight()
  68. end
  69. refuel()
  70. end
  71. turtle.select(1)
  72. end
  73. --Notfuel--
  74. if(turtle.getFuelLevel() < 50) then
  75. print("---------------------------------------")
  76. print("---------------------------------------")
  77. print("-------------NOTFUEL-------------------")
  78. print("---------------------------------------")
  79. print("---------------------------------------")
  80. Sortieren()
  81. if turtle.getItemCount(7) > 5 then
  82. turtle.select(7)
  83. turtle.refuel(5)
  84. else
  85. for i=1,16 do
  86. turtle.select(i)
  87. turtle.refuel(3)
  88. end
  89. end
  90. turtle.select(1)
  91. momfuellevel = turtle.getFuelLevel()
  92. print("Aufgetankt "..momfuellevel.." Fuel im Tank")
  93. end
  94. end
  95.  
  96. function forward()
  97. refuel()
  98. zaehler1 = zaehler1 +1
  99. while(turtle.forward()==false) do
  100. print("WARNUNG Block im Weg !!")
  101. turtle.attack()
  102. turtle.dig()
  103. sleep(2)
  104. end
  105. end
  106.  
  107. function forward2()
  108. refuel()
  109. zaehler1 = zaehler1 +1
  110. while(turtle.forward()==false) do
  111. turtle.attack()
  112. turtle.dig()
  113. end
  114. end
  115.  
  116. function up()
  117. refuel()
  118. while(turtle.up()==false) do
  119. if turtle.detectUp() then
  120. turtle.digUp()
  121. end
  122. end
  123. end
  124.  
  125. function down()
  126. refuel()
  127. while(turtle.down()==false) do
  128. if turtle.detectDown() then
  129. turtle.digDown()
  130. end
  131. turtle.attackDown()
  132. end
  133. end
  134.  
  135. function back()
  136. refuel()
  137. while(turtle.back()==false) do
  138. print("WARNUNG Block im Weg !!")
  139. end
  140. end
  141.  
  142.  
  143. function forward1()
  144. refuel()
  145. while(turtle.forward()==false) do
  146. if zaehler2 > 0 then
  147. turtle.turnLeft()
  148. turtle.turnLeft()
  149. zaehler2 = 0
  150. else
  151. zaehler1 = zaehler1 +1
  152. turtle.turnRight()
  153. zaehler2 = zaehler2 + 1
  154. end
  155. end
  156. zaehler2 = 0
  157. end
  158.  
  159. function down1()
  160. if turtle.detectDown() then
  161.  
  162. else
  163. refuel()
  164. while(turtle.down()==false) do
  165. end
  166. end
  167. end
  168.  
  169. function Stein()
  170. success, data = turtle.inspect()
  171. while(success and data.name==steinblock) do
  172. turtle.dig()
  173. break
  174. end
  175. end
  176.  
  177. -- (Programm Start Stein) --
  178.  
  179. -- überprüfe ob Cobblegenerator gebaut ist --
  180.  
  181. function abbauen()
  182. if turtle.getItemCount(13) <= 61 then
  183. turtle.select(13)
  184. turtle.dig()
  185. sleep(5)
  186. success, data = turtle.inspect()
  187. if (success and data.name==steinblock) then
  188. print("Wasser und Lava vorhanden")
  189. else
  190. print("---------------------------------------")
  191. print("kein Cobblegenerator vorhanden !")
  192. print("Fuege Wasser und Lava hinzu !")
  193. print("Wasser Links und Rechts")
  194. print("Lava in der Mitte")
  195. print("---------------------------------------")
  196. sleep(2)
  197. print("...")
  198. sleep(2)
  199. print("Turtle Startet dann automatisch")
  200. end
  201. end
  202. if turtle.getItemCount(13) <= 62 then
  203.  
  204. print("Baue 1 Stack Stein ab")
  205.  
  206. while turtle.getItemCount(13) <= 62 do
  207. turtle.select(13)
  208. Stein()
  209. turtle.turnLeft()
  210. Stein()
  211. turtle.turnRight()
  212.  
  213. end
  214.  
  215. turtle.select(1)
  216. print("habe nun 1 Stack Stein im Invi")
  217.  
  218. else
  219. print("Habe schon genug Steine im Invi")
  220. print("(Slot 13) ")
  221.  
  222. end
  223. end
  224.  
  225. --(Baum)-----------------------------------------------------------
  226. function Blatt()
  227. turtle.dig()
  228. turtle.digDown()
  229. turtle.digUp()
  230. end
  231.  
  232. function Blatt1()
  233. for i=1,4 do
  234. Blatt()
  235. forward()
  236. end
  237. turtle.turnRight()
  238. end
  239.  
  240. function Blatt3()
  241. for i=1,2 do
  242. Blatt()
  243. forward()
  244. end
  245. turtle.turnRight()
  246. end
  247.  
  248. function Blatt2()
  249.  
  250.  
  251. turtle.digUp()
  252. up()
  253. turtle.digUp()
  254. up()
  255.  
  256. turtle.dig()
  257. forward()
  258.  
  259. turtle.dig()
  260. forward()
  261. turtle.dig()
  262. turtle.turnRight()
  263. Blatt()
  264. forward()
  265. Blatt()
  266. forward()
  267. turtle.turnRight()
  268. Blatt1()
  269. Blatt1()
  270. Blatt1()
  271.  
  272. turtle.dig()
  273. forward()
  274. turtle.turnRight()
  275. Blatt()
  276. forward()
  277. turtle.turnLeft()
  278. Blatt3()
  279. Blatt3()
  280. Blatt3()
  281. Blatt3()
  282. forward()
  283. turtle.turnRight()
  284. forward()
  285. turtle.turnRight()
  286. turtle.turnRight()
  287. end
  288.  
  289. function fell1()
  290. count = count + 1
  291. print("Baum Nr. " ..count.. " wird gefaellt!")
  292. turtle.dig()
  293. forward()
  294.  
  295. Blatt2()
  296. turtle.digUp()
  297. up()
  298. Blatt2()
  299. turtle.digUp()
  300. up()
  301. turtle.digUp()
  302. up()
  303.  
  304. for i=1,7 do
  305. down()
  306. end
  307. while(turtle.back()==false) do end
  308. end
  309.  
  310. function place()
  311. turtle.select(5)
  312. turtle.place()
  313. turtle.select(1)
  314. end
  315.  
  316. function fell2()
  317. turtle.dig()
  318. forward()
  319. for i=1,6 do
  320. turtle.digUp()
  321. for i=1,4 do
  322. turtle.dig()
  323. turtle.turnRight()
  324. end
  325. up()
  326. end
  327. for i=1,6 do
  328. down()
  329. end
  330. while(turtle.back()==false) do end
  331. end
  332.  
  333. function fell5()
  334. if turtle.getItemCount(5) < zaehler6 then
  335. fell1()
  336. Sortieren()
  337. else
  338. fell2()
  339. Sortieren()
  340. end
  341. end
  342.  
  343. function fell()
  344. turtle.select(8)
  345. success, data = turtle.inspect()
  346. if(success and data.name==treeblock and turtle.getItemCount(8) < 57 ) then
  347. fell5()
  348. end
  349. end
  350.  
  351. function Weg1(xy)
  352. for i=1,xy do
  353. turtle.turnLeft()
  354. fell()
  355. place()
  356. turtle.turnRight()
  357. for i=1,4 do
  358. forward()
  359. end
  360. end
  361. turtle.turnLeft()
  362. fell()
  363. place()
  364. turtle.turnRight()
  365. end
  366.  
  367. function Baumlinie1()
  368. if turtle.getItemCount(16) > 10 or zaehler3 > 1 then
  369. print("Ich gehe Holz faellen")
  370. zaehler3 = 0
  371. turtle.turnRight()
  372. for i=1,4 do
  373. forward()
  374. end
  375. Weg1(10)
  376. turtle.turnRight()
  377. Sortieren()
  378. for i=1,3 do
  379. forward()
  380. end
  381. turtle.turnRight()
  382. Weg1(10)
  383.  
  384.  
  385. for i=1,4 do
  386. forward()
  387. end
  388. turtle.turnRight()
  389. for i=1,3 do
  390. forward()
  391. end
  392. else
  393. print("Ich habe noch zuwenig Holzkohle")
  394. zaehler3 = zaehler3 + 1
  395. end
  396. end
  397.  
  398. --(ofen)----------------------------------------------------------------
  399.  
  400. function Steinofenbef()
  401. if turtle.getItemCount(13) > 20 then
  402. turtle.select(13)
  403. turtle.dropDown(19)
  404. turtle.select(1)
  405. end
  406. end
  407.  
  408. function Steinofenent()
  409. for i=1,2 do
  410. if turtle.getItemCount(14) < 50 then
  411. turtle.select(14)
  412. turtle.suckUp(10)
  413. turtle.select(1)
  414. end
  415. end
  416. end
  417.  
  418. function ofenbef()
  419. if turtle.getItemCount(16) > 2 then
  420. turtle.select(16)
  421. turtle.drop(1)
  422. turtle.select(1)
  423. end
  424.  
  425. if turtle.getItemCount(7) > 8 then
  426. turtle.select(7)
  427. turtle.drop(5)
  428. turtle.select(1)
  429. end
  430. end
  431.  
  432. function ofenbef1()
  433. if turtle.getItemCount(16) > 22 then
  434. turtle.select(16)
  435. turtle.drop(2)
  436. turtle.select(1)
  437. end
  438. end
  439.  
  440. function Holzofenbef()
  441. if turtle.getItemCount(8) > 4 then
  442. turtle.select(8)
  443. turtle.dropDown(5)
  444. turtle.select(1)
  445. end
  446. if turtle.getItemCount(8) > 10 then
  447. turtle.select(8)
  448. turtle.dropDown(3)
  449. turtle.select(1)
  450. end
  451. if turtle.getItemCount(8) > 20 then
  452. turtle.select(8)
  453. turtle.dropDown(8)
  454. turtle.select(1)
  455. end
  456. end
  457.  
  458. function Holzofenent()
  459. for i=1,2 do
  460. if turtle.getItemCount(16) < 50 then
  461. turtle.select(16)
  462. turtle.suckUp(10)
  463. turtle.select(1)
  464. end
  465. end
  466. end
  467.  
  468. --(Sortieren)----------------------------------------------------------------
  469.  
  470. function Drop()
  471.  
  472. for i=1,16 do
  473. if turtle.getItemCount(i) > 0 then
  474. turtle.select(i)
  475. turtle.dropUp()
  476. end
  477. end
  478. end
  479.  
  480. function Suck()
  481. turtle.select(1)
  482. for i=1,16 do
  483. turtle.suckUp()
  484. end
  485. end
  486.  
  487.  
  488. function Sortieren1(x,z)
  489. allesnachoben(x)
  490. if turtle.getItemCount(x) > 0 then
  491. for j=1,16 do
  492. turtle.select(x)
  493. turtle.transferTo(j)
  494. end
  495. end
  496.  
  497. for i=1,16 do
  498. if turtle.getItemCount(i) > 0 then
  499. if turtle.getItemDetail(i).name == z then
  500. turtle.select(i)
  501. turtle.transferTo(x)
  502. end
  503. end
  504. end
  505. end
  506.  
  507. function allesnachoben(x)
  508. if turtle.getItemCount(x) > 0 then
  509. turtle.select(x)
  510. if x > 3 then
  511. turtle.transferTo(x-1)
  512. turtle.transferTo(x-2)
  513. turtle.transferTo(x-3)
  514. end
  515. end
  516. end
  517.  
  518. function Sortieren()
  519. Sortieren1(16,"minecraft:coal")
  520. Sortieren1(15,"minecraft:stonebrick")
  521. Sortieren1(14,"minecraft:stone")
  522. Sortieren1(13,"minecraft:cobblestone")
  523. Sortieren1(12,"minecraft:fence")
  524. Sortieren1(11,"minecraft:torch")
  525. Sortieren1(10,"minecraft:stick")
  526. Sortieren1(9,"minecraft:chest")
  527. Sortieren1(8,"minecraft:log")
  528. Sortieren1(7,"minecraft:planks")
  529. Sortieren1(6,"minecraft:oak_stairs")
  530. Sortieren1(5,"minecraft:sapling")
  531. print("Sortiert")
  532. end
  533.  
  534. function Sortieren2()
  535. Sortieren1(16,"minecraft:coal")
  536. Sortieren1(15,"minecraft:stonebrick")
  537. Sortieren1(14,"minecraft:dirt")
  538. Sortieren1(13,"minecraft:cobblestone")
  539. Sortieren1(12,"minecraft:water_bucket")
  540. Sortieren1(11,"minecraft:water_bucket")
  541. Sortieren1(10,"minecraft:lava_bucket")
  542. Sortieren1(9,"minecraft:chest")
  543. Sortieren1(8,"minecraft:log")
  544. Sortieren1(7,"minecraft:planks")
  545. Sortieren1(6,"minecraft:furnace")
  546. Sortieren1(5,"minecraft:sapling")
  547. print("Sortiert")
  548. end
  549.  
  550. function Dropa()
  551. forward()
  552. forward()
  553. for i=1,4 do
  554. turtle.select(i)
  555. turtle.dropUp()
  556. end
  557. back()
  558. back()
  559. end
  560.  
  561. function Dropb()
  562. for i=4,16 do
  563. turtle.select(i)
  564. turtle.dropUp()
  565. end
  566. turtle.select(1)
  567. end
  568.  
  569. function Dropc()
  570. turtle.select(4)
  571. turtle.dropUp()
  572. turtle.select(8)
  573. turtle.dropUp()
  574. turtle.select(12)
  575. turtle.dropUp()
  576. turtle.select(13)
  577. turtle.dropUp()
  578. turtle.select(14)
  579. turtle.dropUp()
  580. turtle.select(15)
  581. turtle.dropUp()
  582. turtle.select(16)
  583. turtle.dropUp()
  584. turtle.select(1)
  585. end
  586.  
  587. --(Craft)-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  588.  
  589. function CraftBretter()
  590.  
  591. if turtle.getItemCount(8) > 5 and turtle.getItemCount(7) < 45 then
  592. turtle.select(8)
  593. turtle.transferTo(1)
  594. Dropb()
  595. turtle.select(1)
  596. turtle.transferTo(8)
  597.  
  598. turtle.select(8)
  599. turtle.transferTo(1,5)
  600.  
  601. turtle.select(8)
  602. Dropc()
  603. turtle.craft()
  604. turtle.select(1)
  605.  
  606. Drop()
  607. Suck()
  608. Sortieren()
  609. Dropa()
  610. print("Bretter hergestellt")
  611.  
  612. end
  613. end
  614.  
  615. function CraftStein()
  616.  
  617. if turtle.getItemCount(14) > 20 and turtle.getItemCount(15) < 45 then
  618. turtle.select(14)
  619. turtle.transferTo(1)
  620. Dropb()
  621. turtle.select(1)
  622. turtle.transferTo(14,20)
  623.  
  624.  
  625. turtle.select(14)
  626. turtle.transferTo(1,5)
  627. turtle.select(14)
  628. turtle.transferTo(2,5)
  629. turtle.select(14)
  630. turtle.transferTo(5,5)
  631. turtle.select(14)
  632. turtle.transferTo(6,5)
  633.  
  634. turtle.select(15)
  635. Dropc()
  636. turtle.craft()
  637. turtle.select(1)
  638.  
  639. Drop()
  640. Suck()
  641. Sortieren()
  642. Dropa()
  643. print("Steinziegel hergestellt")
  644.  
  645. end
  646. end
  647.  
  648. function CraftStick()
  649.  
  650. if turtle.getItemCount(7) > 6 and turtle.getItemCount(15) < 45 then
  651. turtle.select(7)
  652. turtle.transferTo(1)
  653. Dropb()
  654. turtle.select(1)
  655. turtle.transferTo(14,6)
  656.  
  657.  
  658. turtle.select(14)
  659. turtle.transferTo(1,3)
  660.  
  661. turtle.select(14)
  662. turtle.transferTo(5,3)
  663.  
  664.  
  665. turtle.select(10)
  666. Dropc()
  667. turtle.craft()
  668. turtle.select(1)
  669.  
  670. Drop()
  671. Suck()
  672. Sortieren()
  673. Dropa()
  674. print("Stick hergestellt")
  675.  
  676. end
  677. end
  678.  
  679. function Craftfence()
  680.  
  681. if turtle.getItemCount(10) > 36 and turtle.getItemCount(12) < 44 then
  682. turtle.select(10)
  683. turtle.transferTo(1)
  684. Dropb()
  685. turtle.select(1)
  686. turtle.transferTo(14)
  687.  
  688. turtle.select(14)
  689. turtle.transferTo(5,6)
  690. turtle.select(14)
  691. turtle.transferTo(6,6)
  692. turtle.select(14)
  693. turtle.transferTo(7,6)
  694. turtle.select(14)
  695. turtle.transferTo(9,6)
  696. turtle.select(14)
  697. turtle.transferTo(10,6)
  698. turtle.select(14)
  699. turtle.transferTo(11,6)
  700.  
  701. turtle.select(15)
  702. Dropc()
  703. turtle.craft()
  704. turtle.select(1)
  705.  
  706. Drop()
  707. Dropc()
  708. Suck()
  709. Sortieren()
  710. Dropa()
  711. print("Fence hergestellt")
  712.  
  713. end
  714. end
  715.  
  716.  
  717. function Craftchest()
  718.  
  719. if turtle.getItemCount(7) > 8 and turtle.getItemCount(9) < 19 then
  720. turtle.select(7)
  721. turtle.transferTo(1)
  722. Dropb()
  723. turtle.select(1)
  724. turtle.transferTo(14)
  725.  
  726.  
  727. turtle.select(14)
  728. turtle.transferTo(1,1)
  729.  
  730. turtle.select(14)
  731. turtle.transferTo(2,1)
  732.  
  733. turtle.select(14)
  734. turtle.transferTo(3,1)
  735.  
  736. turtle.select(14)
  737. turtle.transferTo(5,1)
  738.  
  739. turtle.select(14)
  740. turtle.transferTo(7,1)
  741.  
  742. turtle.select(14)
  743. turtle.transferTo(9,1)
  744.  
  745. turtle.select(14)
  746. turtle.transferTo(10,1)
  747.  
  748. turtle.select(14)
  749. turtle.transferTo(11,1)
  750.  
  751.  
  752. turtle.select(14)
  753. Dropc()
  754. turtle.craft()
  755. turtle.select(1)
  756.  
  757. Drop()
  758. Suck()
  759. Sortieren()
  760. Dropa()
  761. print("Kiste hergestellt")
  762.  
  763. end
  764. end
  765.  
  766. function Craftchest1()
  767.  
  768. if turtle.getItemCount(7) > 8 and turtle.getItemCount(9) < 19 then
  769. turtle.select(7)
  770. turtle.transferTo(1)
  771. Dropb()
  772. turtle.select(1)
  773. turtle.transferTo(14)
  774.  
  775.  
  776. turtle.select(14)
  777. turtle.transferTo(1,1)
  778.  
  779. turtle.select(14)
  780. turtle.transferTo(2,1)
  781.  
  782. turtle.select(14)
  783. turtle.transferTo(3,1)
  784.  
  785. turtle.select(14)
  786. turtle.transferTo(5,1)
  787.  
  788. turtle.select(14)
  789. turtle.transferTo(7,1)
  790.  
  791. turtle.select(14)
  792. turtle.transferTo(9,1)
  793.  
  794. turtle.select(14)
  795. turtle.transferTo(10,1)
  796.  
  797. turtle.select(14)
  798. turtle.transferTo(11,1)
  799.  
  800.  
  801. turtle.select(14)
  802. Dropc()
  803. turtle.craft()
  804. turtle.select(1)
  805.  
  806. Drop()
  807. Suck()
  808. Sortieren2()
  809. Dropa()
  810. print("Kiste hergestellt")
  811.  
  812. end
  813. end
  814.  
  815. function Craftofen()
  816.  
  817. if turtle.getItemCount(13) then
  818. turtle.select(13)
  819. turtle.transferTo(1)
  820. Dropb()
  821. turtle.select(1)
  822. turtle.transferTo(14)
  823.  
  824.  
  825. turtle.select(14)
  826. turtle.transferTo(1,2)
  827.  
  828. turtle.select(14)
  829. turtle.transferTo(2,2)
  830.  
  831. turtle.select(14)
  832. turtle.transferTo(3,2)
  833.  
  834. turtle.select(14)
  835. turtle.transferTo(5,2)
  836.  
  837. turtle.select(14)
  838. turtle.transferTo(7,2)
  839.  
  840. turtle.select(14)
  841. turtle.transferTo(9,2)
  842.  
  843. turtle.select(14)
  844. turtle.transferTo(10,2)
  845.  
  846. turtle.select(14)
  847. turtle.transferTo(11,2)
  848.  
  849.  
  850. turtle.select(14)
  851. Dropc()
  852. turtle.craft()
  853. turtle.select(1)
  854.  
  855. Drop()
  856. Suck()
  857. Sortieren2()
  858. Dropa()
  859. print("Ofen hergestellt")
  860.  
  861. end
  862. end
  863.  
  864. function Craftstairs()
  865.  
  866. if turtle.getItemCount(7) > 18 and turtle.getItemCount(6) < 45 then
  867. turtle.select(7)
  868. turtle.transferTo(1)
  869. Dropb()
  870. turtle.select(1)
  871. turtle.transferTo(14)
  872.  
  873.  
  874. turtle.select(14)
  875. turtle.transferTo(3,3)
  876.  
  877. turtle.select(14)
  878. turtle.transferTo(6,3)
  879.  
  880. turtle.select(14)
  881. turtle.transferTo(7,3)
  882.  
  883. turtle.select(14)
  884. turtle.transferTo(9,3)
  885.  
  886. turtle.select(14)
  887. turtle.transferTo(10,3)
  888.  
  889. turtle.select(14)
  890. turtle.transferTo(11,3)
  891.  
  892.  
  893. turtle.select(14)
  894. Dropc()
  895. turtle.craft()
  896. turtle.select(1)
  897.  
  898. Drop()
  899. Suck()
  900. Sortieren()
  901. Dropa()
  902. print("Holztreppe hergestellt")
  903.  
  904. end
  905. end
  906.  
  907.  
  908.  
  909. function Crafttorch()
  910.  
  911. if turtle.getItemCount(10) > 5 and turtle.getItemCount(16) > 20 and turtle.getItemCount(11) < 45 then
  912. turtle.select(10)
  913. turtle.transferTo(1)
  914. turtle.select(16)
  915. turtle.transferTo(2)
  916. Dropb()
  917. turtle.select(1)
  918. turtle.transferTo(14)
  919. turtle.select(2)
  920. turtle.transferTo(15)
  921.  
  922. turtle.select(14)
  923. turtle.transferTo(5,5)
  924.  
  925. turtle.select(15)
  926. turtle.transferTo(1,5)
  927.  
  928.  
  929. turtle.select(14)
  930. Dropc()
  931. turtle.craft()
  932. turtle.select(1)
  933.  
  934. Drop()
  935. Suck()
  936. Sortieren()
  937. Dropa()
  938. print("Fackel hergestellt")
  939.  
  940. end
  941. end
  942.  
  943. -----------------------------------------------------------
  944.  
  945. function CraftStoneslab()
  946. turtle.select(16)
  947. turtle.refuel(3)
  948. up()
  949. up()
  950. turtle.select(13)
  951. turtle.transferTo(1)
  952. Dropb()
  953. turtle.select(1)
  954. turtle.transferTo(13)
  955.  
  956. turtle.select(13)
  957. turtle.transferTo(1,5)
  958. turtle.select(13)
  959. turtle.transferTo(2,5)
  960. turtle.select(13)
  961. turtle.transferTo(3,5)
  962.  
  963. turtle.select(5)
  964. Dropb()
  965. turtle.craft()
  966. down()
  967. down()
  968. end
  969.  
  970. --(End Craft)----------------------------------------------------------------------------------------------------------------------------
  971.  
  972. function Invi()
  973.  
  974. up()
  975. up()
  976. Drop()
  977. Suck()
  978. Sortieren()
  979. Dropa()
  980.  
  981. CraftStein()
  982. CraftStein()
  983.  
  984. if turtle.getItemCount(16) > 19 and zaehler7 > 0 then
  985. CraftBretter()
  986. CraftStick()
  987. Craftfence()
  988. Craftchest()
  989. Craftstairs()
  990. Crafttorch()
  991. end
  992.  
  993. down()
  994. down()
  995.  
  996. end
  997.  
  998. function Invi1()
  999.  
  1000. up()
  1001. up()
  1002. Drop()
  1003. Suck()
  1004. Sortieren()
  1005. Dropa()
  1006. down()
  1007. down()
  1008.  
  1009. end
  1010.  
  1011. function Ofen()
  1012. up()
  1013. turtle.turnRight()
  1014. --(Kohle nr1)--
  1015. ofenbef()
  1016. turtle.turnRight()
  1017. --(Kohle nr.2)--
  1018. ofenbef1()
  1019.  
  1020. up()
  1021. forward()
  1022. --(Ofen nr1)--
  1023. Steinofenbef()
  1024. turtle.turnRight()
  1025. turtle.turnRight()
  1026. forward()
  1027.  
  1028. turtle.turnRight()
  1029. forward()
  1030. --(Ofen nr2)--
  1031. Holzofenbef()
  1032. turtle.turnRight()
  1033. turtle.turnRight()
  1034. forward()
  1035. turtle.turnRight()
  1036. down()
  1037. down()
  1038. back()
  1039. Steinofenent()
  1040. forward()
  1041. turtle.turnRight()
  1042. forward()
  1043. Holzofenent()
  1044. back()
  1045. turtle.turnLeft()
  1046. end
  1047.  
  1048. function ring()
  1049. turtle.select(13)
  1050. for i= 1,4 do
  1051. turtle.turnRight()
  1052. turtle.place()
  1053. end
  1054. turtle.select(1)
  1055. end
  1056.  
  1057. function baucobble1()
  1058. if not turtle.detect() then
  1059. turtle.select(13)
  1060. turtle.place()
  1061. end
  1062. end
  1063.  
  1064. function baucobble()
  1065. turtle.turnLeft()
  1066. forward()
  1067. forward()
  1068. ring()
  1069. up()
  1070. ring()
  1071. up()
  1072. turtle.turnRight()
  1073. forward()
  1074. forward()
  1075. turtle.turnRight()
  1076. forward()
  1077. forward()
  1078. down()
  1079. down()
  1080. ring()
  1081. up()
  1082. ring()
  1083. up()
  1084.  
  1085. forward()
  1086. turtle.turnRight()
  1087. forward()
  1088. down()
  1089.  
  1090. turtle.select(13)
  1091. turtle.placeDown()
  1092.  
  1093. up()
  1094. forward()
  1095. forward()
  1096. turtle.turnRight()
  1097. down()
  1098. down()
  1099. forward()
  1100.  
  1101. turtle.select(13)
  1102. turtle.place()
  1103.  
  1104. turtle.turnRight()
  1105. forward()
  1106. turtle.select(1)
  1107.  
  1108. --(Standart Code end)--
  1109.  
  1110. up()
  1111. up()
  1112. turtle.turnLeft()
  1113. forward()
  1114. forward()
  1115. forward()
  1116. turtle.turnRight()
  1117. forward()
  1118. forward()
  1119. down()
  1120. down()
  1121. turtle.digDown()
  1122. down()
  1123. turtle.select(13)
  1124. turtle.placeDown()
  1125. turtle.turnLeft()
  1126. baucobble1()
  1127. turtle.turnLeft()
  1128. baucobble1()
  1129.  
  1130. turtle.turnLeft()
  1131. turtle.dig()
  1132. forward()
  1133. turtle.placeDown()
  1134. turtle.turnRight()
  1135. baucobble1()
  1136.  
  1137. turtle.turnLeft()
  1138. baucobble1()
  1139.  
  1140. turtle.turnLeft()
  1141. turtle.dig()
  1142.  
  1143. forward()
  1144. turtle.placeDown()
  1145. turtle.turnRight()
  1146. baucobble1()
  1147. turtle.turnLeft()
  1148. baucobble1()
  1149.  
  1150. turtle.turnLeft()
  1151. turtle.dig()
  1152. forward()
  1153. turtle.placeDown()
  1154.  
  1155. baucobble1()
  1156. turtle.turnRight()
  1157. baucobble1()
  1158. back()
  1159. up()
  1160.  
  1161. turtle.select(11)
  1162. turtle.placeDown()
  1163.  
  1164. forward()
  1165. turtle.turnRight()
  1166. forward()
  1167.  
  1168. turtle.select(12)
  1169. turtle.placeDown()
  1170.  
  1171. turtle.turnRight()
  1172. forward()
  1173. turtle.turnRight()
  1174. forward()
  1175. turtle.turnRight()
  1176.  
  1177. turtle.select(11)
  1178. turtle.placeDown()
  1179. sleep(2)
  1180. turtle.select(12)
  1181. turtle.placeDown()
  1182. --(---)--
  1183.  
  1184. up()
  1185. up()
  1186. back()
  1187. back()
  1188. turtle.turnRight()
  1189. forward()
  1190. turtle.select(11)
  1191. turtle.placeDown()
  1192.  
  1193. forward()
  1194. turtle.turnLeft()
  1195. forward()
  1196. turtle.select(10)
  1197. turtle.placeDown()
  1198. turtle.turnRight()
  1199. forward()
  1200.  
  1201. turtle.turnLeft()
  1202. forward()
  1203.  
  1204. turtle.select(12)
  1205. turtle.placeDown()
  1206.  
  1207. back()
  1208. back()
  1209. down()
  1210. down()
  1211. print("Cobblegenerator gebaut !!")
  1212. end
  1213.  
  1214.  
  1215. function baukiste()
  1216. Sortieren1(1,"minecraft:chest")
  1217. if turtle.getItemDetail(1).name == "minecraft:chest" then
  1218.  
  1219. else
  1220. turtle.select(1)
  1221. turtle.dropUp()
  1222. baukiste()
  1223. print("Falsches Iteam im Slot Nr 1 oder zuwenig Kisten !")
  1224. end
  1225.  
  1226.  
  1227. Sortieren1(1,"minecraft:chest")
  1228. Sortieren1(2,"minecraft:furnace")
  1229. Sortieren1(13,"minecraft:cobblestone")
  1230.  
  1231. if turtle.getItemCount(1) > 1 and turtle.getItemCount(2) > 1 and turtle.getItemCount(13) > 17 then
  1232.  
  1233. up()
  1234. up()
  1235. turtle.select(1)
  1236. turtle.placeUp()
  1237. forward()
  1238. forward()
  1239. turtle.placeUp()
  1240. back()
  1241. back()
  1242. down()
  1243. turtle.turnRight()
  1244. turtle.select(2)
  1245. turtle.place()
  1246. turtle.turnRight()
  1247. turtle.select(2)
  1248. turtle.place()
  1249. turtle.turnRight()
  1250. turtle.turnRight()
  1251. down()
  1252. else
  1253. print("------------------------------")
  1254. print("WARNUNG")
  1255. print("Fuege 2 Kisten und 2 Ofen hinzu")
  1256. print("Zudem mindistens 18 Cobblestone")
  1257. print("ein paar Setzlinge")
  1258. print("und genug Fuel")
  1259. print("------------------------------")
  1260. sleep(5)
  1261. baukiste()
  1262. zaehler3 = 4
  1263. end
  1264. end
  1265.  
  1266.  
  1267. function slap(xy)
  1268. for i= 1,xy do
  1269. for i= 1,4 do
  1270. forward()
  1271. end
  1272. turtle.placeUp()
  1273. end
  1274.  
  1275. end
  1276.  
  1277. function baufarm()
  1278.  
  1279. if turtle.getItemCount(13) > 14 then
  1280. CraftStoneslab()
  1281. back()
  1282. back()
  1283. for i= 1,7 do
  1284. up()
  1285. end
  1286. forward()
  1287. forward()
  1288. forward()
  1289. turtle.turnRight()
  1290. slap(11)
  1291. turtle.turnRight()
  1292. for i= 1,5 do
  1293. forward()
  1294. end
  1295. turtle.turnRight()
  1296. turtle.placeUp()
  1297. slap(10)
  1298. for i= 1,4 do
  1299. forward()
  1300. end
  1301.  
  1302. for i= 1,7 do
  1303. down()
  1304. end
  1305.  
  1306. turtle.turnRight()
  1307. for i= 1,4 do
  1308. forward()
  1309. end
  1310. end
  1311. end
  1312.  
  1313.  
  1314. function ringbau(xy)
  1315.  
  1316. for i=1,xy do
  1317. forward()
  1318. success, data = turtle.inspectDown()
  1319. if (success and data.name=="minecraft:stonebrick") then
  1320. else
  1321. turtle.digDown()
  1322. turtle.select(15)
  1323. turtle.placeDown()
  1324. end
  1325. end
  1326. end
  1327.  
  1328. function bauring()
  1329. if turtle.getItemCount(16) > 8 then
  1330. print("baue am Ring weiter")
  1331.  
  1332. ringbau(7)
  1333. turtle.turnRight()
  1334. ringbau(57)
  1335. turtle.turnRight()
  1336. ringbau(57)
  1337. turtle.turnRight()
  1338. ringbau(57)
  1339. turtle.turnRight()
  1340. ringbau(50)
  1341. if turtle.getItemCount(15) > 0 then
  1342. turtle.select(7)
  1343. turtle.digDown()
  1344. turtle.placeDown()
  1345. end
  1346. end
  1347. end
  1348.  
  1349. function ring10()
  1350. if turtle.getItemCount(15) > 45 and turtle.getItemCount(16) > 30 then
  1351. print("Check ob Ring gebaut ist")
  1352. back()
  1353. back()
  1354. turtle.turnLeft()
  1355. for i= 1,5 do
  1356. forward()
  1357. end
  1358.  
  1359. success, data = turtle.inspect()
  1360. if (success and data.name=="minecraft:planks") then
  1361.  
  1362. turtle.turnRight()
  1363. success, data = turtle.inspectDown()
  1364. if (success and data.name=="minecraft:planks") then
  1365. print("Ring vorhanden")
  1366. zaehler6 = 45
  1367. zaehler7 = 1
  1368. else
  1369. bauring()
  1370. end
  1371. -- gehe zurück
  1372. turtle.turnRight()
  1373. for i= 1,5 do
  1374. forward()
  1375. end
  1376. turtle.turnLeft()
  1377. forward()
  1378. forward()
  1379.  
  1380. else
  1381. ebnen2()
  1382.  
  1383.  
  1384. end
  1385. end
  1386. end
  1387.  
  1388. --(Start)---------------------------------------------------
  1389.  
  1390.  
  1391. function scann()
  1392. success, data = turtle.inspectUp()
  1393. if (success and data.name=="minecraft:cobblestone") then
  1394. turtle.digUp()
  1395. zaehler5 = 1
  1396. Start3()
  1397. end
  1398. end
  1399.  
  1400.  
  1401. function x01()
  1402. zaehler4 = 31
  1403.  
  1404.  
  1405. for i=1,30 do
  1406. if zaehler5 == 0 then
  1407. zaehler4 = zaehler4 - 1
  1408. scann()
  1409. shell.run( "clear" )
  1410. print("------------------------------")
  1411. print("Baue einen Cobble ueber mich um einen ersten Start auszufuehren !!")
  1412. print("------------------------------")
  1413. print(" "..zaehler4.." Sek automatischer Start")
  1414. print("------------------------------")
  1415. sleep(1)
  1416. end
  1417. end
  1418.  
  1419. if zaehler5 == 0 then
  1420. success, data = turtle.inspectUp()
  1421. if (success and data.name=="minecraft:cobblestone") then
  1422. turtle.digUp()
  1423. zaehler5 = 1
  1424. Start3()
  1425. else
  1426. Startup()
  1427. end
  1428. end
  1429. end
  1430.  
  1431. function Start3()
  1432.  
  1433. Start4()
  1434. Start2()
  1435. craftstart()
  1436. Start7()
  1437. Start6()
  1438. Start()
  1439.  
  1440. end
  1441.  
  1442. function ebnen2()
  1443. forward2()
  1444. forward2()
  1445. forward2()
  1446. turtle.turnLeft()
  1447.  
  1448. for i=1,53 do
  1449. forward2()
  1450. end
  1451. turtle.turnLeft()
  1452. turtle.turnLeft()
  1453. ebnen3()
  1454.  
  1455. turtle.turnRight()
  1456. for i=1,63 do
  1457. forward2()
  1458. end
  1459. turtle.turnRight()
  1460. print("Flaeche ist Eben")
  1461. for i=1,53 do
  1462. forward2()
  1463. end
  1464. Sortieren1(7,"minecraft:planks")
  1465. turtle.turnLeft()
  1466. turtle.select(7)
  1467. turtle.place()
  1468. turtle.select(1)
  1469. turtle.turnRight()
  1470. turtle.turnRight()
  1471. for i=1,8 do
  1472. forward2()
  1473. end
  1474. turtle.turnLeft()
  1475. forward()
  1476. forward()
  1477. end
  1478.  
  1479.  
  1480. function Start7()
  1481.  
  1482. for i=1,48 do
  1483. forward2()
  1484. end
  1485. end
  1486.  
  1487. function scann1()
  1488. zaehler9 = 0
  1489. zaehler10 = zaehler10 +1
  1490. success, data = turtle.inspectDown()
  1491. if (success and data.name== "minecraft:grass") then
  1492. zaehler12 = turtle.getFuelLevel()
  1493. zaehler13 = 1/((64*16)/100)
  1494. zaehler11 = zaehler10 * zaehler13
  1495. shell.run( "clear" )
  1496. print("---------------------------------------")
  1497. print(" Flaeche ebnen")
  1498. print("---------------------------------------")
  1499. print(" Block: Fuel Status: % Status: ")
  1500. print(" "..zaehler10.." "..zaehler12.." "..zaehler11.."")
  1501. print("---------------------------------------")
  1502. else
  1503. turtle.digDown()
  1504. turtle.select(1)
  1505. turtle.placeDown()
  1506. end
  1507.  
  1508. for i=1,8 do
  1509. success, data = turtle.inspectUp()
  1510. if (success and data.name== wasser1) then
  1511. print("Wasserquelle")
  1512. up()
  1513. zaehler9 = zaehler9 +1
  1514. end
  1515.  
  1516. success, data = turtle.inspectUp()
  1517. if (success and data.name== "minecraft:lava") then
  1518. print("Lavaquelle")
  1519. Sortieren1(2,"minecraft:bucket")
  1520. if turtle.getItemCount(2) > 0 then
  1521. turtle.select(2)
  1522. turtle.placeUp()
  1523. turtle.refuel()
  1524. up()
  1525. zaehler9 = zaehler9 +1
  1526.  
  1527. end
  1528. Sortieren2()
  1529. Dropa()
  1530. Sortieren1(1,"minecraft:dirt")
  1531.  
  1532. end
  1533.  
  1534. if turtle.detectUp() then
  1535.  
  1536. turtle.digUp()
  1537. up()
  1538. zaehler9 = zaehler9 +1
  1539. end
  1540. end
  1541.  
  1542. while zaehler9 > 0 do
  1543. down()
  1544. zaehler9 = zaehler9 -1
  1545. end
  1546. end
  1547.  
  1548. function scann2()
  1549. zaehler9 = 0
  1550. zaehler10 = zaehler10 +1
  1551. success, data = turtle.inspectDown()
  1552. if (success and data.name== "minecraft:grass") then
  1553. zaehler12 = turtle.getFuelLevel()
  1554. zaehler13 = 1/((64*48)/100)
  1555. zaehler11 = zaehler10 * zaehler13
  1556. shell.run( "clear" )
  1557. print("---------------------------------------")
  1558. print(" Flaeche ebnen")
  1559. print("---------------------------------------")
  1560. print(" Block: Fuel Status: % Status: ")
  1561. print(" "..zaehler10.." "..zaehler12.." "..zaehler11.."")
  1562. print("---------------------------------------")
  1563. else
  1564. turtle.digDown()
  1565. turtle.select(1)
  1566. turtle.placeDown()
  1567. end
  1568.  
  1569. for i=1,8 do
  1570. success, data = turtle.inspectUp()
  1571. if (success and data.name== wasser1) then
  1572. print("Wasserquelle")
  1573. up()
  1574. zaehler9 = zaehler9 +1
  1575. end
  1576.  
  1577. success, data = turtle.inspectUp()
  1578. if (success and data.name== "minecraft:lava") then
  1579. print("Lavaquelle")
  1580. Sortieren1(2,"minecraft:bucket")
  1581. if turtle.getItemCount(2) > 0 then
  1582. turtle.select(2)
  1583. turtle.placeUp()
  1584. turtle.refuel()
  1585. up()
  1586. zaehler9 = zaehler9 +1
  1587.  
  1588. end
  1589. Sortieren2()
  1590. Dropa()
  1591. Sortieren1(1,"minecraft:dirt")
  1592.  
  1593. end
  1594.  
  1595. if turtle.detectUp() then
  1596.  
  1597. turtle.digUp()
  1598. up()
  1599. zaehler9 = zaehler9 +1
  1600. end
  1601. end
  1602.  
  1603. while zaehler9 > 0 do
  1604. down()
  1605. zaehler9 = zaehler9 -1
  1606. end
  1607. end
  1608.  
  1609. function runde1()
  1610. Sortieren2()
  1611. Dropa()
  1612. Sortieren1(1,"minecraft:dirt")
  1613. scann1()
  1614.  
  1615. end
  1616.  
  1617. function runde2()
  1618. Sortieren1(1,"minecraft:dirt")
  1619. scann1()
  1620. for i=1,15 do
  1621. forward2()
  1622. scann1()
  1623. end
  1624.  
  1625.  
  1626. end
  1627.  
  1628.  
  1629. function Start6()
  1630.  
  1631. for i=1,31 do
  1632. runde2()
  1633. turtle.turnRight()
  1634. forward2()
  1635. Sortieren2()
  1636. Dropa()
  1637. Sortieren1(1,"minecraft:dirt")
  1638. scann1()
  1639. turtle.turnRight()
  1640. runde2()
  1641. turtle.turnLeft()
  1642. forward2()
  1643. Sortieren1(1,"minecraft:dirt")
  1644. scann1()
  1645. turtle.turnLeft()
  1646. end
  1647.  
  1648. runde2()
  1649. turtle.turnRight()
  1650. forward2()
  1651. Sortieren1(1,"minecraft:dirt")
  1652. scann1()
  1653. turtle.turnRight()
  1654. runde2()
  1655. turtle.turnRight()
  1656. for i=1,63 do
  1657. forward2()
  1658. end
  1659. turtle.turnRight()
  1660. print("Flaeche ist Eben")
  1661. zaehler9 = 0
  1662. zaehler10 = 0
  1663.  
  1664. Sortieren1(1,"minecraft:chest")
  1665. for i= 1,5 do
  1666. forward()
  1667. end
  1668. turtle.turnRight()
  1669.  
  1670. for i= 1,8 do
  1671. forward()
  1672. end
  1673.  
  1674. turtle.turnLeft()
  1675. forward()
  1676. forward()
  1677.  
  1678. end
  1679.  
  1680. function ebnen4()
  1681. Sortieren1(1,"minecraft:dirt")
  1682. scann2()
  1683. for i=1,47 do
  1684. forward2()
  1685. scann2()
  1686. end
  1687. end
  1688.  
  1689. function ebnen3()
  1690.  
  1691. for i=1,31 do
  1692. ebnen4()
  1693. turtle.turnRight()
  1694. forward2()
  1695. Sortieren2()
  1696. Sortieren1(11,"minecraft:dirt")
  1697. Dropa()
  1698. Sortieren1(1,"minecraft:dirt")
  1699. scann2()
  1700. turtle.turnRight()
  1701. ebnen4()
  1702. turtle.turnLeft()
  1703. forward2()
  1704. Sortieren1(1,"minecraft:dirt")
  1705. scann2()
  1706. turtle.turnLeft()
  1707. end
  1708.  
  1709. ebnen4()
  1710. turtle.turnRight()
  1711. forward2()
  1712. Sortieren1(1,"minecraft:dirt")
  1713. scann2()
  1714. turtle.turnRight()
  1715. ebnen4()
  1716. end
  1717.  
  1718.  
  1719. function Start4()
  1720.  
  1721. shell.run( "clear" )
  1722.  
  1723. print("------------------------------")
  1724. print(" Erster Start 1/3 ")
  1725. print("------------------------------")
  1726. sleep(2)
  1727. print("Turtle Programm von Lord94")
  1728. sleep(2)
  1729. print("Version "..Version.." ")
  1730. print("------------------------------")
  1731.  
  1732. sleep(2)
  1733. print("Ist der Turtle ein Crafting")
  1734. print("und Mining Turtle ?")
  1735. print("(Also mit Werkbank und")
  1736. print("Dia-Spitzhacke ?)")
  1737. print("------------------------------")
  1738. print("Druecke Enter fuer JA")
  1739.  
  1740. sleep(1)
  1741. shell.run( "clear" )
  1742. print("------------------------------")
  1743. print(" Erster Start 1/3 ")
  1744. print("------------------------------")
  1745. print("Turtle Programm von Lord94")
  1746. print("Version "..Version.." ")
  1747. print("------------------------------")
  1748.  
  1749. print("Ist der Turtle ein Crafting")
  1750. print("und Mining Turtle ?")
  1751. print("(Also mit Werkbank und")
  1752. print("Dia-Spitzhacke ?)")
  1753. print("------------------------------")
  1754. print("Druecke Enter fuer JA -")
  1755.  
  1756. sleep(1)
  1757. shell.run( "clear" )
  1758. print("------------------------------")
  1759. print(" Erster Start 1/3 ")
  1760. print("------------------------------")
  1761. print("Turtle Programm von Lord94")
  1762. print("Version "..Version.." ")
  1763. print("------------------------------")
  1764.  
  1765. print("Ist der Turtle ein Crafting")
  1766. print("und Mining Turtle ?")
  1767. print("(Also mit Werkbank und")
  1768. print("Dia-Spitzhacke ?)")
  1769. print("------------------------------")
  1770. print("Druecke Enter fuer JA --")
  1771.  
  1772. sleep(1)
  1773. shell.run( "clear" )
  1774. print("------------------------------")
  1775. print(" Erster Start 1/3 ")
  1776. print("------------------------------")
  1777. print("Turtle Programm von Lord94")
  1778. print("Version "..Version.." ")
  1779. print("------------------------------")
  1780.  
  1781. print("Ist der Turtle ein Crafting")
  1782. print("und Mining Turtle ?")
  1783. print("(Also mit Werkbank und")
  1784. print("Dia-Spitzhacke ?)")
  1785. print("------------------------------")
  1786. print("Druecke Enter fuer JA -->")
  1787.  
  1788. ein1 = io.read()
  1789. if not ein1 == "" then
  1790.  
  1791. shell.run( "clear" )
  1792. print("------------------------------")
  1793. print("Bitte baue mich ab und ")
  1794. print("gebe mir ein Werkbank und eine")
  1795. print("Spitzhacke")
  1796. print("------------------------------")
  1797. sleep(5)
  1798. reboot()
  1799.  
  1800. end
  1801.  
  1802. for i=1,16 do
  1803. shell.run( "clear" )
  1804. print("------------------------------")
  1805. print(" Ort 2/3 ")
  1806. print("------------------------------")
  1807. print("Befindet |----- ----- ----- -----|")
  1808. print("sich der | | | | |")
  1809. print("Turtle | | | | |")
  1810. print("links |----- ----- ----- -----|")
  1811. print("unten | 1 | 2 | 3 | 4 |")
  1812. print("von 4x4 | | | | |")
  1813. print("Chunks ? |-----------------------|")
  1814. print("Druecke Enter fuer JA -->")
  1815. sleep(0.2)
  1816. shell.run( "clear" )
  1817. print("------------------------------")
  1818. print(" Ort 2/3 ")
  1819. print("------------------------------")
  1820. print("Befindet |----- ----- ----- -----|")
  1821. print("sich der | | | | |")
  1822. print("Turtle | | | | |")
  1823. print("links |----- ----- ----- -----|")
  1824. print("unten | 1 | 2 | 3 | 4 |")
  1825. print("von 4x4 |X | | | |")
  1826. print("Chunks ? |-----------------------|")
  1827. print("Druecke Enter fuer JA -->")
  1828. sleep(0.2)
  1829. end
  1830.  
  1831. ein1 = io.read()
  1832. if not ein1 == "" then
  1833.  
  1834. end
  1835. --<<<<<<<<<(Text am Start)
  1836.  
  1837. end
  1838.  
  1839.  
  1840.  
  1841. function Start2()
  1842. shell.run( "clear" )
  1843. print("------------------------------")
  1844. print(" Materialien 3/3 ")
  1845. print("------------------------------")
  1846. print("Fuege hinzu:")
  1847. print("- mindistens 34 Cobblestone")
  1848. print("- mindistens 34 Holzbretter")
  1849. print("- mindistens 20 Kohle")
  1850. print("- 2 Wasser Eimer und 1 Lava Eimer")
  1851. print("- ein paar Setzlinge (ca.10)")
  1852. print("- und ein wenig Erde")
  1853. print("------------------------------")
  1854. sleep(2)
  1855. print("Sortiere ... (30Sek)")
  1856. sleep(2)
  1857.  
  1858. Sortieren2()
  1859. if turtle.getItemCount(13) > 33 and turtle.getItemCount(7) > 33 and turtle.getItemCount(12) > 0 and turtle.getItemCount(11) > 0 and turtle.getItemCount(10) > 0 and turtle.getItemCount(16) > Kohleanz then
  1860. shell.run( "clear" )
  1861. print("------------------------------")
  1862. print("Habe alle Materialien")
  1863. print("------------------------------")
  1864. print("Ab jetzt arbeitet der Turtle")
  1865. print("Automatisch. ")
  1866. sleep(2)
  1867. print("")
  1868. print("Baue einen Chunkloader")
  1869. print("oder bleibe fuer mindistens")
  1870. print("2h in der Naehe")
  1871. print("------------------------------")
  1872. sleep(2)
  1873. else
  1874. Sortieren2()
  1875. Start2()
  1876.  
  1877. end
  1878. end
  1879.  
  1880. function craftstart()
  1881. Dropa()
  1882. turtle.select(13)
  1883. for i=1,4 do
  1884. turtle.place()
  1885. turtle.turnRight()
  1886. end
  1887. up()
  1888. turtle.select(1)
  1889. turtle.dig()
  1890. Dropa()
  1891. turtle.select(7)
  1892. turtle.transferTo(1)
  1893.  
  1894. for i=4,16 do
  1895. turtle.select(i)
  1896. turtle.dropDown()
  1897. end
  1898.  
  1899. turtle.select(1)
  1900. turtle.transferTo(14)
  1901.  
  1902. turtle.select(14)
  1903. turtle.transferTo(1,1)
  1904. turtle.select(14)
  1905. turtle.transferTo(2,1)
  1906. turtle.select(14)
  1907. turtle.transferTo(3,1)
  1908. turtle.select(14)
  1909. turtle.transferTo(5,1)
  1910. turtle.select(14)
  1911. turtle.transferTo(7,1)
  1912. turtle.select(14)
  1913. turtle.transferTo(9,1)
  1914. turtle.select(14)
  1915. turtle.transferTo(10,1)
  1916. turtle.select(14)
  1917. turtle.transferTo(11,1)
  1918.  
  1919. turtle.select(14)
  1920.  
  1921. turtle.select(4)
  1922. turtle.dropDown()
  1923. turtle.select(8)
  1924. turtle.dropDown()
  1925. turtle.select(12)
  1926. turtle.dropDown()
  1927. turtle.select(13)
  1928. turtle.dropDown()
  1929. turtle.select(14)
  1930. turtle.dropDown()
  1931. turtle.select(15)
  1932. turtle.dropDown()
  1933. turtle.select(16)
  1934. turtle.dropDown()
  1935. turtle.select(1)
  1936.  
  1937. turtle.craft()
  1938. turtle.select(1)
  1939.  
  1940. turtle.placeUp()
  1941.  
  1942. for i=1,16 do
  1943. turtle.suckDown()
  1944. end
  1945.  
  1946. Drop()
  1947. Suck()
  1948. Sortieren2()
  1949. print("Kiste hergestellt")
  1950. down()
  1951.  
  1952. for i=1,4 do
  1953. turtle.dig()
  1954. turtle.turnRight()
  1955. end
  1956. up()
  1957.  
  1958. Craftchest1()
  1959. Craftofen()
  1960. turtle.digUp()
  1961. down()
  1962.  
  1963.  
  1964. end
  1965.  
  1966.  
  1967. function Start()
  1968.  
  1969. turtle.turnRight()
  1970. forward()
  1971. turtle.turnLeft()
  1972. sleep(1)
  1973. success, data = turtle.inspect()
  1974. if (success and data.name=="minecraft:cobblestone") then
  1975. print("Cobblegenerator vorhanden")
  1976. turtle.turnLeft()
  1977. forward()
  1978. turtle.turnRight()
  1979. else
  1980. turtle.turnLeft()
  1981. forward()
  1982. turtle.turnRight()
  1983. baukiste()
  1984. baucobble()
  1985. Invi1()
  1986. abbauen()
  1987. Invi1()
  1988. baufarm()
  1989. zaehler3 = 3
  1990. Invi1()
  1991. Baumlinie1()
  1992.  
  1993.  
  1994. end
  1995. end
  1996. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1997.  
  1998. function Startup()
  1999.  
  2000. success, data = turtle.inspectDown()
  2001. if(success and data.name=="minecraft:stonebrick") then
  2002. print("Sucherlinie gefunden")
  2003. folgesucherlinie()
  2004. else
  2005. for i=1,5 do
  2006. down1()
  2007. end
  2008. forward1()
  2009. refuel()
  2010. Startup()
  2011. end
  2012. end
  2013.  
  2014. function folgesucherlinie()
  2015. forward1()
  2016.  
  2017. success, data = turtle.inspectDown()
  2018. if(success and data.name=="minecraft:planks") then
  2019. turtle.turnRight()
  2020. for i= 1,5 do
  2021. forward()
  2022. end
  2023. turtle.turnLeft()
  2024. forward()
  2025. forward()
  2026. print("Bin bei der Station")
  2027. else
  2028. success, data = turtle.inspectDown()
  2029. if(success and data.name=="minecraft:stonebrick") then
  2030. folgesucherlinie()
  2031. else
  2032. back()
  2033. turtle.turnRight()
  2034. folgesucherlinie()
  2035. end
  2036. end
  2037. end
  2038.  
  2039.  
  2040. --(Programm)------------------------------------------
  2041.  
  2042.  
  2043.  
  2044. x01()
  2045.  
  2046. fuellevel = 400
  2047.  
  2048.  
  2049. while true do
  2050. Invi()
  2051. abbauen()
  2052. Ofen()
  2053. Invi()
  2054. turtle.select(16)
  2055. turtle.refuel(3)
  2056. Ofen()
  2057. Invi()
  2058. Baumlinie1()
  2059. Invi()
  2060. ring10()
  2061. zaehler = zaehler +1
  2062. print("-------------------------------")
  2063. print("-------------------------------")
  2064. print("Runde " ..zaehler.. "")
  2065. print("Schritte " ..zaehler1.. "")
  2066. print("-------------------------------")
  2067. print("-------------------------------")
  2068.  
  2069. end
Add Comment
Please, Sign In to add comment