Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=peripheral.wrap("left")
- args = {...}
- dest = args[1]
- amt = tonumber(args[2])
- ids = {...}
- ids["basic"] = 17263
- ids["reinforced"] = 17264
- ids["imbued"] = 17311
- ids["demonic"] = 17312
- for i=1,amt do
- a.pullItem("west",1,1)
- item = a.getStackInSlot(1)
- id=item["id"]
- while id ~= ids[dest] do
- os.sleep(1)
- item = a.getStackInSlot(1)
- id = item["id"]
- end
- a.pushItem("west",1,1,20)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement