Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --#################################################################################################################
- -- Computer Wither Redstone Clock
- -- v. 1.0
- -- (c)2021 CTekkLP
- --#################################################################################################################
- --#################################################################################################################
- -- Local Variables
- --#################################################################################################################
- local side = "right" --Redstone side of the Computer
- local timeSawn = 19 --Time between Spawns
- --#################################################################################################################
- -- Function´s
- --#################################################################################################################
- print("How many Runs?")
- local runs = read()
- local num = tonumber(runs)
- function waiting(time)
- local myTimer = os.startTimer(time)
- while true do
- local event, timerID = os.pullEvent("timer")
- if timerID == myTimer then break end
- end
- end
- function actRed()
- redstone.setOutput(side, true)
- waiting(0.7)
- redstone.setOutput(side, false)
- end
- --#################################################################################################################
- -- Main
- --#################################################################################################################
- if num ~= nil then
- for i= 1, runs, 1 do
- print("Start Run ", i)
- actRed()
- waiting(18)
- end
- else
- print("Error")
- end
Add Comment
Please, Sign In to add comment