Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Benutzerinfos
- --
- --Es muss mindestens 1024 Fuel eingefüllt sein.
- --Wie das geht? Fuel in einen beliebigen Slot legen und anschließend "refuel all" schreiben.
- --
- --Folgende Items/Blöcke müssen in folgende Slots:
- --Slot 2: Irgendwelche Blöcke (vorzugsweise Erde, Cobble o.ä.)
- --Slot 16: 12 Landmarks
- --
- --Wie man die Quarries am Ende aufstellt:
- --Die anliegenden Landmarks einer Landmark, welche nun verbunden werden soll, abbauen
- --Landmark rechtsklicken, Viereck entsteht
- --In die Form (siehe Slot 3/4) die Quarry stellen
- --Gleiches Vorgehen bei den restlichen Quarries
- --Anschließend noch Tesseracts einstellen
- --
- --Geschrieben von FunSpammbot / JenoMiners
- --Der Code ist zwar kaum lesbar und unuebersichtlich, jedoch sollte alles funktionieren.
- --Auftretende Bugs bitte im Forum reporten.
- --Standardgedöns
- term.clear()
- term.setCursorPos(1, 1)
- --Standardgedöns
- --Funktion für öfteren Gebrauch
- function checkForBlockAndDig()
- if turtle.forward() == false then
- repeat
- turtle.dig()
- turtle.digUp()
- sleep(0.3)
- until turtle.forward() == true
- end
- if turtle.detectUp() == true
- then
- turtle.digUp()
- end
- end
- --Abfragen
- if turtle.getItemCount(16) < 12 --Landmarks
- then
- print("Zu wenig Landmarks. Lege mindestens 12 Landmarks in Slot 16 ab und starte anschliessend das Programm neu.")
- return
- end
- if turtle.getFuelLevel() < 1024 --Fuel
- then
- print("Zu wenig Fuel. Bitte in einen beliebigen Slot Kohle o.ä. einfüllen und 'refuel all' ausführen. Dann Programm neustarten.")
- return
- end
- if turtle.getItemCount(2) < 32
- then
- print("Zu wenige Baublöcke. Bitte mehr in Slot 2 einlegen. Minimum 32.")
- return
- end
- --Plattformbau
- turtle.select(2)
- turtle.turnLeft()
- checkForBlockAndDig()
- turtle.turnRight()
- turtle.placeDown()
- for i = 1,3 do
- checkForBlockAndDig()
- turtle.placeDown()
- end
- turtle.digUp()
- turtle.turnRight()
- checkForBlockAndDig()
- turtle.turnRight()
- turtle.placeDown()
- for i = 1,2 do
- checkForBlockAndDig()
- turtle.placeDown()
- end
- turtle.digUp()
- turtle.forward()
- turtle.turnLeft()
- checkForBlockAndDig()
- turtle.placeDown()
- turtle.turnLeft()
- for i = 1,3 do
- checkForBlockAndDig()
- turtle.placeDown()
- end
- turtle.turnRight()
- checkForBlockAndDig()
- turtle.placeDown()
- turtle.turnRight()
- for i = 1,3 do
- checkForBlockAndDig()
- turtle.placeDown()
- end
- turtle.turnRight()
- turtle.digUp()
- for i = 1,2 do
- turtle.forward()
- end
- turtle.turnRight()
- --Plattformbau
- --Graben der Wege und/oder Setzen der Landmarks
- turtle.forward()
- turtle.turnLeft()
- for i = 1,64 do --Weg zur 1. und 2. Landmark
- checkForBlockAndDig()
- end
- turtle.turnLeft()
- checkForBlockAndDig()
- turtle.select(2)
- turtle.placeDown()
- turtle.back()
- turtle.select(16)
- turtle.place()
- for i = 1,2 do
- turtle.turnRight()
- end
- for i = 1,2 do
- checkForBlockAndDig()
- end
- turtle.select(2)
- turtle.placeDown()
- turtle.back()
- turtle.select(16)
- turtle.place()
- turtle.turnRight()
- for i = 1,63 do --Weg zurueck von der 1. und 2. Landmark
- checkForBlockAndDig()
- end
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- for i = 1,66 do --Weg zu der 3. und 4. Landmark
- checkForBlockAndDig()
- end
- turtle.turnLeft()
- checkForBlockAndDig()
- turtle.select(2)
- turtle.placeDown()
- turtle.back()
- turtle.select(16)
- turtle.place()
- for i = 1,2 do
- turtle.turnRight()
- end
- for i = 1,2 do
- checkForBlockAndDig()
- end
- turtle.select(2)
- turtle.placeDown()
- turtle.back()
- turtle.select(16)
- turtle.place()
- turtle.turnRight()
- for i = 1,63 do --Weg zurück von der 3. und 4. Landmark
- checkForBlockAndDig()
- end
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- for i = 1,64 do --Weg zu der 5. und 6. Landmark
- checkForBlockAndDig()
- end
- turtle.turnLeft()
- checkForBlockAndDig()
- turtle.select(2)
- turtle.placeDown()
- turtle.back()
- turtle.select(16)
- turtle.place()
- for i = 1,2 do
- turtle.turnRight()
- end
- for i = 1,2 do
- checkForBlockAndDig()
- end
- turtle.select(2)
- turtle.placeDown()
- turtle.back()
- turtle.select(16)
- turtle.place()
- turtle.turnRight()
- for i =1,63 do --Weg zurueck von der 5. und 6. Landmark
- checkForBlockAndDig()
- end
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- for i = 1,66 do --Weg zur 7. und 8. Landmark
- checkForBlockAndDig()
- end
- turtle.turnLeft()
- checkForBlockAndDig()
- turtle.select(2)
- turtle.placeDown()
- turtle.back()
- turtle.select(16)
- turtle.place()
- for i = 1,2 do
- turtle.turnRight()
- end
- for i = 1,2 do
- checkForBlockAndDig()
- end
- turtle.select(2)
- turtle.placeDown()
- turtle.back()
- turtle.select(16)
- turtle.place()
- turtle.turnRight()
- for i = 1,63 do --Weg zurueck von der 7. und 8. Landmark
- checkForBlockAndDig()
- end
- --Graben der Wege und/oder Setzen der Landmarks
- --Setzen der Tesseracts
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.select(3)
- turtle.forward()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.place()
- --Setzen der Tesseracts
- turtle.select(4)
- turtle.up()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- for i = 1,2 do turtle.turnRight()
- end
- turtle.forward()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement