SHARE
TWEET

ComputeCraft/Arranque

Rubenpaji_11 Jun 1st, 2020 (edited) 1,511 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local version = "1.0"
  2. function get_version_info()
  3.     return {
  4.         name = "Arranque";
  5.         authors = { "Rubenpaji_11" };
  6.         version = version;
  7.         description = "Arranca la tortuga y instala todos los programas necesarios";
  8.     }
  9. end
  10.  
  11. if not turtle then error "Lo siento pero no soy una tortuga T_T" end
  12.  
  13. print "Arrancando ajustes de la tortuga"
  14. print "┬┐Como quieres que me llame?"
  15. os.setComputerLabel(io.read())
  16.  
  17. shell.run "mkdir api"
  18. shell.run "mkdir bin"
  19.  
  20. print "┬┐Como quieres que te salude?"
  21. local greeting = io.read()
  22.  
  23. local startup = io.open("startup", "w")
  24. startup:write[[os.loadAPI("api/digutils")]]
  25. startup:write([[print "]]..greeting..[["]])
  26. startup:write[==[
  27. print("el nivel de combustible es " .. turtle.getFuelLevel())
  28. ]==]
  29. startup:close()
  30.  
  31. f = io.open("update", "w")
  32. f:write[[shell.run "pastebin run AHTVQNXy"]]
  33. f:close()
  34.  
  35. shell.run "update"
  36.  
  37. print "Todo listo, reiniciame manteniendo ctrl + r"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top