Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- local x, y, difference
- while true do
- if redstone.getInput("front") == true then
- x = os.clock()
- os.pullEvent("redstone")
- y = os.clock()
- difference = y - x
- if difference < 0.5 then
- rednet.send(219,"L")
- elseif difference > 0.5 then
- rednet.send(219,"L'")
- end
- end
- os.pullEvent("redstone")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement