Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pChest = peripheral.find("chest")
- pMonitor = peripheral.find("monitor")
- stacks = pChest.getAllStacks()
- for slot, stack in pairs(stacks) do
- if (stack.all ~=nil) then
- stack=stack.all()
- end
- if (stack.name== "teleporterMK1") then
- print(stack.display_name)
- else
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement