Advertisement
Guest User

enchant

a guest
Jun 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local cache = {peripheral.find("powered_tile")}
  2. --p = peripheral.wrap("right")
  3.  
  4. --local items = {}
  5. for r,u in pairs(cache) do
  6.  
  7.   scan = u.getStackInSlot(2)
  8.      
  9.   if scan then
  10.     if #scan.enchanted_book == 1 then  
  11.       print(scan.enchanted_book[1].fullName)
  12.     else
  13.       print("")
  14.       for k,v in pairs(scan.enchanted_book) do
  15.         print(v.fullName)
  16.       end
  17.       --print("")
  18.     end
  19.   else
  20.   print("-Vide")
  21.   end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement