Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("mettre le carburant et taper [ok] pour lancer le programe")
- txt = read()
- if txt == "ok" then
- shell.run("refuel all")
- print("tortue : ok [demarage du programe]")
- while true do
- while turtle.dig() do os.sleep(0.4) end
- while not turtle.forward() do turtle.attack() end
- while turtle.digUp() do os.sleep(0.4) end
- end
- else
- shell.run("startup")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement