Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local speed = 0.2
- local bool
- function randf(side)
- num = math.random(0, 65536)
- rs.setBundledOutput(side, num)
- end
- function off(side)
- rs.setBundledOutput(side, 0)
- end
- print("Hold CTRL+T to stop the program.")
- while true do
- bool = rs.getInput("top")
- if bool then randf("right") randf("left") randf("back") randf("bottom") sleep(speed)
- else off("right") off("left") off("back") off("bottom") event = os.pullEvent("redstone")
- end
- end
Add Comment
Please, Sign In to add comment