DorianH935

Untitled

Jul 18th, 2024 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. local vlt = peripheral.find("create:item_vault")
  2. local srn = peripheral.find("monitor")
  3. local rsright = rs.getInput("left")
  4.  
  5. while true do
  6. srn.clear()
  7. local y = 1
  8.  
  9. if vlt == nil then
  10. srn.setCursorPos(6, 4)
  11. srn.write("Vault Not Found")
  12. else
  13. local itemList = vlt.list()
  14. if itemList == nil then
  15. srn.setCursorPos(6, 4)
  16. srn.write("Error: Could not retrieve item list")
  17. else
  18. for slot, item in pairs(itemList) do
  19. srn.setCursorPos(1, y)
  20. srn.write(y .. " " .. item.name .. " " .. (item.count or 1))
  21. y = y + 1
  22. end
  23. end
  24. end
  25.  
  26. os.pullEvent("redstone")
  27. end
  28.  
Advertisement
Add Comment
Please, Sign In to add comment