Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pulseLength = 1 -- In ticks
- clockSpeed = 20 -- In ticks
- while true do
- while not rs.getInput("bottom") do -- Remove "not" if you want to enable the clock when supplying a signal
- rs.setOutput("back", true)
- sleep(pulseLength / 20)
- rs.setOutput("back", false)
- rs.setOutput("front", true)
- sleep(pulseLength / 20)
- rs.setOutput("front", false)
- rs.setOutput("left", true)
- sleep(pulseLength / 20)
- rs.setOutput("left", false)
- rs.setOutput("right", true)
- sleep(pulseLength / 20)
- rs.setOutput("right", false)
- end
- event = os.pullEvent("redstone")
- end
Add Comment
Please, Sign In to add comment