Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = peripheral.wrap("front")
- while true do
- while not c.getStackInSlot(0).id == 266 do
- repeat sleep(2)
- until c.getStackInSlot(0).id == 266
- break
- end
- while c.getStackInSlot(0).id == 266 do
- if c.getStackInSlot(0).id == 266 and c.getStackInSlot(0).qty >= 32 then
- turtle.suck()
- turtle.transferTo(2,5)
- turtle.drop()
- elseif not c.getStackInSlot(0).id == 266 then
- print("Not the right item..")
- elseif c.getStackInSlot(0).id == 266 and c.getStackInSlot(0).qty < 1 then
- print("Not Enough")
- end
- sleep(1)
- break
- end
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement