Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- up = true
- rednet.open("left")
- function activate()
- if up then
- for i=1,17 do
- redstone.setOutput("right",true)
- os.sleep(0.5)
- redstone.setOutput("right",false)
- os.sleep(0.25)
- end
- up = false
- else
- for i=1,17 do
- redstone.setOutput("bottom",true)
- os.sleep(0.5)
- redstone.setOutput("bottom",false)
- os.sleep(0.25)
- end
- up = true
- end
- end
- while true do
- event, id, message = os.pullEvent()
- if event == "rednet_message" and message == "elevatoractivate" then
- activate()
- print("Activated.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment