Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Using: CC: Tweaked, Plethora
- pastebin run FeiUhiS5
- ]]--
- if pcall(os.loadAPI, "jLib/jFuncs") then
- else
- shell.run("pastebin get kqBFGcfV jLib/jFuncs")
- os.loadAPI("jLib/jFuncs")
- end
- self = peripheral.wrap("left")
- local function toExportFormat(itemData)
- if(itemData == nil) then
- return nil
- end
- ret = {}
- ret["name"] = itemData.name
- ret["damage"] = itemData.damage
- ret["nbtHash"] = itemData.nbtHash
- return ret
- end
- local inv = self.getInventory().list()
- local ret = {}
- ret["test"] = {}
- ret["test"][1] = toExportFormat(inv[1])
- ret["test"][2] = toExportFormat(inv[2])
- ret["test"][3] = toExportFormat(inv[3])
- ret["test"][4] = toExportFormat(inv[5])
- ret["test"][5] = toExportFormat(inv[6])
- ret["test"][6] = toExportFormat(inv[7])
- ret["test"][7] = toExportFormat(inv[9])
- ret["test"][8] = toExportFormat(inv[10])
- ret["test"][9] = toExportFormat(inv[11])
- file = fs.open("tempUpload", "w")
- file.write(textutils.serialize(ret))
- file.close()
- shell.run("pastebin put tempUpload")
Advertisement
Add Comment
Please, Sign In to add comment