Advertisement
maxence01

mineur

Mar 19th, 2021
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("mettre le carburant et taper [ok] pour lancer le programe")
  4. txt = read()
  5.  
  6. if txt == "ok" then
  7. shell.run("refuel all")
  8. print("tortue : ok [demarage du programe]")
  9.     while true do
  10.    
  11.         while turtle.dig() do os.sleep(0.4) end
  12.         while not turtle.forward() do turtle.attack() end
  13.         while turtle.digUp() do os.sleep(0.4) end
  14.        
  15.     end
  16. else
  17. shell.run("startup")
  18. end
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement