Advertisement
SpitefulJames

itemsearch.lua

Apr 23rd, 2021
694
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. pChest = peripheral.find("chest")
  2. pMonitor = peripheral.find("monitor")
  3.  
  4. stacks = pChest.getAllStacks()
  5. for slot, stack in pairs(stacks) do
  6.     if (stack.all ~=nil) then
  7.         stack=stack.all()
  8. end
  9.     if (stack.name== "teleporterMK1") then
  10.     print(stack.display_name)
  11. else
  12.     return
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement