Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[function os.pullEvent()
- -- local event, p1, p2, p3,p4,p5 = os.pullEventRaw()
- -- if event == "terminate" then
- -- --print("lel nice try")
- -- end
- --return event, p1,p2,p3,p4,p5
- --end
- redstone.setOutput("bottom",true)
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("password m8")
- input = read()
- if input == "123" then
- print("How many?")
- ammount = read()
- while true do
- if type(tonumber(ammount))=="number" then
- break
- end
- term.clear()
- term.setCursorPos(1,1)
- print("How many")
- ammount=read()
- end
- redstone.setOutput("bottom",false)
- sleep(0.1)
- for i=1,ammount do
- redstone.setOutput("back",true)
- print(i)
- sleep(0.1)
- redstone.setOutput("back",false)
- sleep(0.1)
- end
- sleep(0.1)
- redstone.setOutput("bottom",true)
- term.clear()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment