Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Work In Progress - Will get updated as I work on the new programs
- term.setBackgroundColor(colors.cyan)
- term.clear()
- term.setTextColor(colors.white)
- term.setCursorPos(1,1)
- print("Downloading Tutorial Programs")
- -- Introduction(Module 1)
- if not fs.exists("section1") then
- shell.run("pastebin get QZHpv6gN section1")
- else
- print("Module Detected! Updating...")
- fs.delete("section1")
- shell.run("pastebin get QZHpv6gN section1")
- print("Module Updated")
- end
- -- Basic Commands (Module 2)
- if not fs.exists("section2") then
- shell.run("pastebin get Cr67UQJR section2")
- else
- print("Module Detected! Updating...")
- fs.delete("section2")
- shell.run("pastebin get Cr67UQJR section2")
- print("Module Updated")
- end
- -- Variables (Module 3)
- if not fs.exists("section3") then
- shell.run("pastebin get fcGxkhvi section3")
- else
- print("Module Detected! Updating...")
- fs.delete("section3")
- shell.run("pastebin get fcGxkhvi section3")
- print("Module Updated")
- end
- -- Text (Module 4)
- if not fs.exists("section4") then
- shell.run("pastebin get S5GB1rYA section4")
- else
- print("Module Detected! Updating...")
- fs.delete("section4")
- shell.run("pastebin get S5GB1rYA section4")
- print("Module Updated")
- end
- -- Colors (Module 5)
- if not fs.exists("section5") then
- shell.run("pastebin get XRykh4Mx section5")
- else
- print("Module Detected! Updating...")
- fs.delete("section5")
- shell.run("pastebin get XRykh4Mx section5")
- print("Module Updated")
- end
- -- If/Else Statements (Module 6)
- if not fs.exists("section6") then
- shell.run("pastebin get yxifrr53 section6")
- else
- print("Module Detected! Updating...")
- fs.delete("section6")
- shell.run("pastebin get yxifrr53 section6")
- print("Module Updated")
- end
- -- Loops (Module 7)
- if not fs.exists("section7") then
- shell.run("pastebin get 4Kd70Qb6 section7")
- else
- print("Module Detected! Updating...")
- fs.delete("section7")
- shell.run("pastebin get 4Kd70Qb6 section7")
- print("Module Updated")
- end
- -- Loops Continued (Module 7.1)
- if not fs.exists("section71") then
- shell.run("pastebin get h3a2UMfk section71")
- else
- print("Module Detected! Updating...")
- fs.delete("section71")
- shell.run("pastebin get h3a2UMfk section71")
- print("Module Updated")
- end
- -- Redstone (Module 8)
- if not fs.exists("section8") then
- shell.run("pastebin get UcCUqnUm section8")
- else
- print("Module Detected! Updating...")
- fs.delete("section8")
- shell.run("pastebin get UcCUqnUm section8")
- print("Module Updated")
- end
- -- Redstone Continued (Module 7.1)
- if not fs.exists("section81") then
- shell.run("pastebin get 8qs45yYb section81")
- else
- print("Module Detected! Updating...")
- fs.delete("section81")
- shell.run("pastebin get 8qs45yYb section81")
- print("Module Updated")
- end
- -- File System (Module 9.1)
- if not fs.exists("section9") then
- shell.run("pastebin get FfmS5WiZ section9")
- else
- print("Module Detected! Updating...")
- fs.delete("section9")
- shell.run("pastebin get FfmS5WiZ section9")
- print("Module Updated")
- end
- -- File System Continued (Module 9.1)
- if not fs.exists("section91") then
- shell.run("pastebin get 1XbDs4Br section91")
- else
- print("Module Detected! Updating...")
- fs.delete("section91")
- shell.run("pastebin get 1XbDs4Br section91")
- print("Module Updated")
- end
- -- Main Tutorial Program
- if not fs.exists("tutor") then
- shell.run("pastebin get 65CNkSQs tutor")
- else
- print("Program Detected! Updating...")
- fs.delete("tutor")
- shell.run("pastebin get 65CNkSQs tutor")
- print("Program Updated")
- end
- -- Module 2 Test
- if not fs.exists("section2Test") then
- shell.run("pastebin get FcmRCqaD section2Test")
- else
- print("Module Detected! Updating...")
- fs.delete("section2Test")
- shell.run("pastebin get FcmRCqaD section2Test")
- print("Module Updated")
- end
- -- Module 3 Test
- if not fs.exists("section2Test") then
- shell.run("pastebin get 1VGFEQUh section3Test")
- else
- print("Module Detected! Updating...")
- fs.delete("section3Test")
- shell.run("pastebin get 1VGFEQUh section3Test")
- print("Module Updated")
- end
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- print("Run \"tutor\" to run the tutorial program")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement