Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p1 = "1" --|created by limebriggs, please fill free to use\edit this as you see fit i only
- p2 = "2" --|ask that you give crit where its due, this program is to be used in conjunction
- p3 = "3" --|with the minecart storage facillity that is posted on my profile but "should"
- ac1 = "lime" --| work with any other similar setups that you have this program does require red power
- --|and at least minecraft 1.1 this is the frist realse of this program any issues will be fixed and later relesed agin
- term.clear()
- term.setCursorPos(1, 1)
- print("=============================================") --|MCSF v1.0 created by limebriggs
- print("||welcome to the minecart storage facility ||")
- print("||or the MCSF for short ||")
- print("||please type in your personal pass code ||")
- print("|| 1,2,3 ||")
- print("=============================================")
- write("Selection: ")
- a = io.read()
- if a == p1 then --|the sytem for sending and returing the frist cart
- term.clear()
- term.setCursorPos(1, 1)
- print("sending cart")
- write("sending.")
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.gray)
- sleep(.2)
- write(".")
- sleep(.2)
- write(".")
- sleep(.1)
- write("Finished")
- sleep(.5)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.gray)
- term.clear()
- term.setCursorPos(1, 1)
- print("=====================================")
- print("||press [r] to got to the main menu||")
- print("=====================================")
- print("selection: ")
- b = io.read()
- if b == "r" then
- term.clear()
- term.setCursorPos(1, 1)
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.pink)
- sleep(2)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.pink)
- print("returning")
- sleep(1)
- shell.run("mc.lua")
- else
- print("error 1- invalid entry")
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.pink)
- sleep(2)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.pinke)
- sleep(1)
- term.clear()
- term.setCursorPos(1, 1)
- print("restarting system")
- sleep(.5)
- shell.run("mc.lua")
- end
- elseif a == p2 then --| 2nd carts code
- term.clear()
- term.setCursorPos(1, 1)
- print("sending cart")
- write("sending.")
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.white)
- sleep(.2)
- write(".")
- sleep(.2)
- write(".")
- sleep(.1)
- write("Finished")
- sleep(.5)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.white)
- term.clear()
- term.setCursorPos(1, 1)
- print("=====================================")
- print("||press [r] to got to the main menu||")
- print("=====================================")
- print("selection: ")
- b = io.read()
- if b == "r" then
- term.clear()
- term.setCursorPos(1, 1)
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.pink)
- sleep(1)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.pink)
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.yellow)
- sleep(3)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.yellow)
- print("returning")
- sleep(1)
- shell.run("mc.lua")
- else
- print("error 1- invalid entry")
- term.clear()
- term.setCursorPos(1, 1)
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.pink)
- sleep(1)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.pink)
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.yellow)
- sleep(3)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.yellow)
- print("returning")
- sleep(1)
- term.clear()
- term.setCursorPos(1, 1)
- print("restarting system")
- sleep(5)
- shell.run("mc.lua")
- end
- elseif a == p3 then --| 3rd carts codeing
- term.clear()
- term.setCursorPos(1, 1)
- print("sending cart")
- write("sending.")
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.orange)
- sleep(.2)
- write(".")
- sleep(.2)
- write(".")
- sleep(.1)
- write("Finished")
- sleep(.5)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.orange)
- term.clear()
- term.setCursorPos(1, 1)
- print("=====================================")
- print("||press [r] to got to the main menu||")
- print("=====================================")
- print("selection: ")
- b = io.read()
- if b == "r" then
- term.clear()
- term.setCursorPos(1, 1)
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.pink)
- sleep(1)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.pink)
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.lime)
- sleep(3)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.lime)
- print("returning")
- sleep(1)
- shell.run("mc.lua")
- else
- print("error 1- invalid entry")
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.pink)
- sleep(1)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.pink)
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.lime)
- sleep(3)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.lime)
- term.clear()
- term.setCursorPos(1, 1)
- print("restarting system")
- sleep(.5)
- shell.run("mc.lua")
- end
- elseif a == ac1 then --|asess door code
- term.clear()
- term.setCursorPos(1, 1)
- if a1 == ac then
- print("welcome, please re-enter your access code to close the door: ")
- rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.green)
- a2 = io.read()
- if a2 == ac1 then
- print("have a nice day")
- sleep(2)
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.green)
- sleep(1)
- shell.run("mc.lua")
- else
- print("retard wrong code")
- rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.green)
- sleep(2)
- shell.run("mc.lua")
- end
- end
- else
- print("error 1- invaild input")
- term.clear()
- term.setCursorPos(1, 1)
- print("restarting system")
- sleep(2)
- shell.run("mc.lua")
- end
Advertisement
Add Comment
Please, Sign In to add comment