zhiyan114

Tape Drive Helper

Apr 16th, 2021 (edited)
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. local component = require("component")
  2.  
  3. local drives = {}
  4. for addr, _ in component.list("tape_drive") do
  5. table.insert(drives, component.proxy(addr))
  6. end
  7. -- We will only be using one drive, if multiple, change.
  8. print(drives[1].getPosition())
Add Comment
Please, Sign In to add comment