Advertisement
Dojnaz

CC Nexus Without Turtle

Jan 24th, 2023 (edited)
618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local chest = peripheral.wrap("left")
  2. local stacks = chest.getAllStacks()
  3.  
  4. for key, book in pairs(stacks) do
  5.   if book.rawName == "item.myst.linkbook" then
  6.     local displayName = book.destination
  7.     if not (book.name == "Linking book") then
  8.       displayName = book.name
  9.     end
  10.    
  11.   else
  12.     print(key)
  13.     print(book)
  14.     chest.pushItem("down", key)
  15.   end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement