Advertisement
Guest User

slates

a guest
Aug 1st, 2014
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. a=peripheral.wrap("left")
  2. args = {...}
  3.  
  4. dest = args[1]
  5. amt = tonumber(args[2])
  6.  
  7. ids = {...}
  8. ids["basic"] = 17263
  9. ids["reinforced"] = 17264
  10. ids["imbued"] = 17311
  11. ids["demonic"] = 17312
  12.  
  13. for i=1,amt do
  14.   a.pullItem("west",1,1)
  15.   item = a.getStackInSlot(1)
  16.   id=item["id"]
  17.   while id ~= ids[dest] do
  18.     os.sleep(1)
  19.     item = a.getStackInSlot(1)
  20.     id = item["id"]
  21.   end
  22.   a.pushItem("west",1,1,20)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement