Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- CC Timer Made by Plazter --
- -- 2013 --
- -- Coded on a Computercraft computer --
- local args = {...}
- if args[1] == nil or args[1] == "help" then
- print("timer <tid> <side>") -- Notice that "timer" is the program so if u call it "lol" it would be lol <tid> <side>
- return
- else
- local delay = tonumber(args[1])
- local side = args[2]
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Timer is set to: ".. args[1])
- print("Minecraft Time is: ".. os.time(false))
- shell.run("redpulse", side, "1")
- sleep(delay)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment