Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- redstone = component.redstone
- tape = component.tape_drive
- repeat
- if tape.read() == 0
- then tape.stop()
- tape.seek(-math.huge)
- end
- if redstone.getInput(1) >= 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