Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. tape = peripheral.wrap("bottom")
  3.  
  4. repeat
  5.   if tape.read() == 0
  6.     then tape.stop()
  7.          tape.seek(-math.huge)
  8.   end
  9.  
  10.   if redstone.getInput("left") >= 1
  11.     then if tape.getState() == "STOPPED"
  12.            then tape.play()
  13.            elseif tape.getState() == "PLAYING"
  14.              then tape.stop()
  15.                   tape.seek(-math.huge)
  16.          end
  17.   end
  18. until i == 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement