Advertisement
94Lord

Untitled

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