Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chest = peripheral.wrap("left")
- local stacks = chest.getAllStacks()
- for key, book in pairs(stacks) do
- if book.rawName == "item.myst.linkbook" then
- local displayName = book.destination
- if not (book.name == "Linking book") then
- displayName = book.name
- end
- else
- print(key)
- print(book)
- chest.pushItem("down", key)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement