Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Crafting turtle gets items from
- --chest in front of it, compares
- --them to pumpkin above it,
- --crafts pumpkins into seeds,
- --and drops items down into hopper/
- --squeezer, checking if there is room
- function craftIt()
- turtle.craft()
- turtle.select(2)
- selection=2
- end
- function dropIt()
- repeat
- turtle.dropDown()
- until turtle.getItemCount(selection)==0
- end
- while true do
- selection=1
- turtle.select(1)
- if turtle.getItemCount(1)==0 then
- if turtle.suck()==false then
- sleep(30)
- end
- end
- if turtle.compareUp() then
- craftIt()
- end
- dropIt()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement