Advertisement
ecco7777

CC Advanced Peripheral Minecolonies ME Supplier

Dec 19th, 2023
979
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. me=peripheral.wrap("top")
  2. mc=peripheral.wrap("back")
  3. stuff=mc.getWorkOrderResources(1)
  4. for i=1,#stuff do
  5.     item={}
  6.     item.name=stuff[i].item
  7.     item.count=stuff[i].needed-stuff[i].available
  8.     if stuff.status~="NOT_NEEDED" then
  9.         me.exportItem(item,"up")
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement