Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tape = peripheral.wrap("bottom")
- repeat
- if tape.read() == 0
- then tape.stop()
- tape.seek(-math.huge)
- end
- if redstone.getInput("left") >= 1
- then if tape.getState() == "STOPPED"
- then tape.play()
- elseif tape.getState() == "PLAYING"
- then tape.stop()
- tape.seek(-math.huge)
- end
- end
- until i == 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement