Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- counter = 0
- waiting_for_runner = true
- sprint_details = {}
- mon = peripheral.wrap("right")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("Parkour Challenge")
- mon.setCursorPos(1,2)
- mon.write("Waiting for runner")
- while waiting_for_runner do
- if redstone.getAnalogInput("left") > 0 then
- waiting_for_runner = false
- mon.clearLine()
- mon.setCursorPos(1,2)
- mon.write("Runner found")
- end
- counter = counter + 0.1
- sleep(0.1)
- end
- term.setCursorPos(1,3)
- term.write(counter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement