Advertisement
Parg60

slaveStartup

Dec 18th, 2020 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. fs.copy("/disk/slave", "/temp")
  2.  
  3. while turtle.getItemCount(15) < 1 do
  4.     turtle.select(1)
  5.     turtle.transferTo(15)  
  6. end
  7. while turtle.getItemCount(16) < 1 do
  8.     turtle.select(1)
  9.     turtle.transferTo(16)
  10. end
  11. while turtle.getItemCount(14) < 1 do
  12.     turtle.select(1)
  13.     turtle.transferTo(14)
  14. end
  15.  
  16. turtle.select(14)
  17. turtle.refuel(3)
  18. turtle.forward()
  19.  
  20. shell.run("rename temp startup")
  21. sleep(1)
  22. os.reboot()
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement