irnotbeowulf

writeinvtofile

May 6th, 2021 (edited)
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local rs = peripheral.find("rsBridge")
  2. local barrel = peripheral.find("metalbarrels:diamond_tile")
  3.  
  4. local function writetofile()
  5. local inv = fs.open("inventory", "w")
  6. inv.write(rs.listItems())
  7. inv.close()
  8. end
  9. writetofile()
  10. --[[
  11. for i =1, #barrel do
  12.   print(i)
  13. end
  14. --]]
  15. sleep(3)
Add Comment
Please, Sign In to add comment