Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pim = peripheral.wrap("front")
- local mon = peripheral.wrap("left")
- local inventoryName = pim.getInventoryName()
- local stacks = pim.getAllStacks()
- term.clear()
- term.setCursorPos(1,1)
- if inventoryName:lower() == "thepotato456" then
- for k, v in pairs(stacks) do
- print(v)
- end
- else
- return
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement