Advertisement
BombBloke

Inject (ComputerCraftEdu)

Jun 20th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local arg = {...}
  2.  
  3. edu.setStopped()
  4.  
  5. print("Select the script in your library you wish to replace (or create a new script), then re-focus this console window and press return.")
  6. read()
  7.  
  8. local import = {}
  9. for line in io.lines(arg[1]) do
  10.   import[#import + 1] = line
  11. end
  12.  
  13. edu.setManualProgram(import)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement