Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local vlt = peripheral.find("create:item_vault")
- local srn = peripheral.find("monitor")
- local rsright = rs.getInput("left")
- while true do
- srn.clear()
- local y = 1
- if vlt == nil then
- srn.setCursorPos(6, 4)
- srn.write("Vault Not Found")
- else
- local itemList = vlt.list()
- if itemList == nil then
- srn.setCursorPos(6, 4)
- srn.write("Error: Could not retrieve item list")
- else
- for slot, item in pairs(itemList) do
- srn.setCursorPos(1, y)
- srn.write(y .. " " .. item.name .. " " .. (item.count or 1))
- y = y + 1
- end
- end
- end
- os.pullEvent("redstone")
- end
Advertisement
Add Comment
Please, Sign In to add comment