Advertisement
Guest User

writeinvtofile

a guest
May 6th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement