Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local speed = 0.5
- local bool
- local tSide = "top"
- local cSide = "back"
- while true do
- bool = rs.getInput(tSide)
- if bool then
- rs.setBundledOutput(cSide,math.random(0,32767))
- sleep(speed)
- else
- rs.setBundledOutput(cSide,0)
- event = os.pullEvent("redstone")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment