Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- local i;
- local f;
- local pulser_set={}
- if #args==0 then
- if not fs.exists("pulsersetting") then print("enter sides to light up in arg");exit(1); end
- f=fs.open("pulsersetting","r")
- pulser_set= textutils.unserialize(f.readAll())
- f.close()
- else
- pulser_set[1]=#args
- for i=1, pulser_set[1] do
- pulser_set[i+1]=args[i]
- end
- end
- f=fs.open("pulsersetting","w")
- f.write(textutils.serialize(pulser_set))
- f.close()
- while true do
- for i=1, pulser_set[1] do
- redstone.setOutput(pulser_set[i+1],true);
- end
- sleep(0.1)
- for i=1, pulser_set[1] do
- redstone.setOutput(pulser_set[i+1],false);
- end
- sleep(0.400)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement