Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- RedPower Sequencer Replacement
- -- A sequencer activates each side for time <argument> in seconds
- -- repeats forever
- local tArgs = {...}
- if #tArgs ~= 1 then
- print("Usage: sequencer <seconds>")
- print(" -- <seconds> is the number of seconds")
- print(" each side should remain active")
- return
- end
- local timing = tonumber(tArgs[1])
- local function sequenceSide( _side )
- redstone.setOutput(_side,true)
- redstone.setBundledOutput(_side,255)
- sleep(timing)
- redstone.setOutput(_side,false)
- redstone.setBundledOutput(_side,0)
- end
- while true do
- sequenceSide("back")
- sequenceSide("right")
- sequenceSide("front")
- sequenceSide("left")
- end
Advertisement
Add Comment
Please, Sign In to add comment