Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local logFile = "/.me_item_details_tmp"
- local searchItem = "minecraft:oak_planks" -- Change this to the item you are looking for
- local device = peripheral.find("meBridge")
- if not device then
- print("No ME Bridge found!")
- return
- end
- local itemFilter = {
- name = searchItem
- }
- local success, itemDetails = pcall(device.getItem, itemFilter)
- if not success or not itemDetails then
- print("Item '" .. searchItem .. "' not found in the ME system.")
- return
- end
- local file = fs.open(logFile, "w")
- file.writeLine("ME Bridge - Item Details for: " .. searchItem .. "\n")
- file.writeLine(textutils.serialize(itemDetails))
- file.close()
- print("\nUploading to Pastebin...")
- local pastebinSuccess = shell.run("pastebin", "put", logFile)
- if pastebinSuccess then
- print("\nPastebin upload successful!")
- end
- fs.delete(logFile)
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement