Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("left")
- local cache = {peripheral.find("powered_tile")}
- local ligne = 0
- --p = peripheral.wrap("right")
- --local items = {}
- mon.setBackgroundColor(colors.lime)
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextScale(1)
- mon.setTextColor(colors.black)
- for r,u in pairs(cache) do
- scan = u.getStackInSlot(2)
- if scan then
- if #scan.enchanted_book == 1 then
- mon.setCursorPos(1,ligne)
- mon.write(scan.enchanted_book[1].fullName)
- ligne = ligne + 1
- else
- mon.write("")
- for k,v in pairs(scan.enchanted_book) do
- mon.write(v.fullName)
- end
- --print("")
- end
- else
- mon.setCursorPos(1,ligne)
- mon.write("-Vide")
- ligne = ligne + 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement