xPrrox

Untitled

Apr 12th, 2022 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. tape = peripheral.find("tape_drive")
  2.  
  3. while true do
  4.     local event, param = os.pullEvent()
  5.       if event == 'key' then
  6.             if param == keys.enter then
  7.             break
  8.             end
  9.         end
  10.     readvalue = tape.read()
  11.             if readvalue == 0 then tape.seek(-99999999)
  12.         else
  13.             sleep(5)
  14.     end
  15. end
Add Comment
Please, Sign In to add comment