View difference between Paste ID: MPkdB15j and d1S9UzrH
SHOW: | | - or go back to the newest paste.
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)