iiburukibun

Test

Mar 8th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. nuke = peripheral.wrap("front")
  2. -- nuke.condenseItems()
  3. local slotnum = nuke.getInventorySize()
  4. data = fs.open("data.db", "a")
  5.  
  6. for i=1,slotnum do
  7. local tableInfo = nuke.getStackInSlot(i)
  8. if tableInfo ~= nil then
  9. for key, value in pairs(tableInfo) do
  10. data.writeLine(key .. " = " .. tostring(value))
  11. print(key .. " = " .. tostring(value))
  12.  
  13. end
  14. data.writeLine("")
  15. else
  16. end
  17. end
  18. data.close()
Advertisement
Add Comment
Please, Sign In to add comment