Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nuke = peripheral.wrap("front")
- -- nuke.condenseItems()
- local slotnum = nuke.getInventorySize()
- data = fs.open("data.db", "a")
- for i=1,slotnum do
- local tableInfo = nuke.getStackInSlot(i)
- if tableInfo ~= nil then
- for key, value in pairs(tableInfo) do
- data.writeLine(key .. " = " .. tostring(value))
- print(key .. " = " .. tostring(value))
- end
- data.writeLine("")
- else
- end
- end
- data.close()
Advertisement
Add Comment
Please, Sign In to add comment