Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.select(1)
- local Check = "False"
- print("Check = "..Check)
- --function Startup()
- if turtle.compareDown() then
- print("How many times should i loop?")
- local Num = tostring( read() )
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- sleep(0.5)
- print("I loop "..Num.." times")
- print("And wich way should i move?")
- print("Usage: Type 'Left' or 'Right'")
- local Move = tostring( read() )
- term.clear()
- term.setCursorPos(1,1)
- print("You chose: "..Move)
- print("Good choice!")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- for i=1,10 do
- print("You chose: "..Move)
- print("Good choice!")
- print("Starting Engines.")
- sleep(0.25)
- term.clear()
- term.setCursorPos(1,1)
- print("You chose: "..Move)
- print("Good choice!")
- print("Starting Engines..")
- sleep(0.25)
- term.clear()
- term.setCursorPos(1,1)
- print("You chose: "..Move)
- print("Good choice!")
- print("Starting Engines...")
- sleep(0.25)
- term.clear()
- term.setCursorPos(1,1)
- end
- else
- print("There's no cobble under me/in slot 1!")
- end
- --end
- print(Move)
- --[[function Check()
- if Move = Left then
- Check = True
- elseif Move = Right then
- Check = True
- else
- Check = False
- end
- if Check = True then
- print("You entered all i needed!")
- sleep(1)
- print("Lets roll! :D")
- else
- print("You entered something wrong!")
- sleep(1)
- print("Rebooting in 5 seconds")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("4")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("3")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("2")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("1")
- sleep(0.2)
- term.clear()
- term.setCursorPos(1,1)
- print("Goodbye!")
- os.reboot()
- end
- end
- function Work() for i=1,Num do
- print("Looped "..tostring(i).." times")
- turtle.forward()
- sleep(0.3)
- end
- turtle.select(1)
- turtle.placeDown()
- turtle.up()
- turtle.select(2)
- turtle.placeDown()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.down()
- Num1 = Num-1
- print(Num)
- print(Num1)
- for i=1,Num1 do
- print("Looped "..tostring(i).." times")
- turtle.forward()
- sleep(0.3)
- end
- turtle.turnRight()
- for i=1,Num do
- print("Looped "..tostring(i).." times")
- turtle.forward()
- sleep(0.3)
- end
- turtle.select(1)
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.placeDown()
- turtle.up()
- turtle.select(2)
- turtle.placeDown()
- turtle.forward()
- turtle.down()
- turtle.select(1)
- for i=1,Num1 do
- print("Looped "..tostring(i).." times")
- turtle.forward()
- sleep(0.3)
- end
- print("Done! Place your quarry! :D")
- end
- Startup()
- Check()
- Work()]]--
Advertisement
Add Comment
Please, Sign In to add comment