Advertisement
jBlume

Disk StartUp Program

Jun 30th, 2023 (edited)
942
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. --Do the following first:
  2. --cd disk
  3. --edit startup
  4.  
  5. --make sure to create the "dig" and "fuel" programs next
  6. --Set label to Diglet
  7. --dig will dig and fuel will force a refuel
  8.  
  9. fs.delete("fuel")
  10. fs.delete("dig")
  11. fs.copy("disk/dig.lua","dig")
  12. fs.copy("disk/fuel.lua","fuel")
  13. shell.run("label set Diglet")
  14. shell.run("fuel")
  15. shell.run("dig")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement