Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("right")
- function upd()
- monitor.clear()
- monitor.write("platform moving up")
- sleep(1)
- end
- function downd()
- monitor.clear()
- monitor.write("platform moving down")
- sleep(1)
- end
- function fwdd()
- monitor.clear()
- monitor.write("platform moving")
- sleep(1)
- end
- while true do
- os.pullEvent('redstone')
- if rs.getBundledInput("back") == 1 then
- downd()
- elseif rs.getBundledInput("back") == 16384 then
- upd()
- elseif rs.getBundledInput("back") == 2 then
- else print("error")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement