Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local soy
- local salt
- local space
- soy = true
- salt = true
- space = true
- while(salt and soy and space)
- do
- while(turtle.getItemCount(2) < 1 and soy)
- do
- turtle.select(2)
- if(not turtle.suckUp(64))
- then
- soy = false
- end
- end
- while(turtle.getItemCount(3) < 1 and salt)
- do
- turtle.select(3)
- if(not turtle.suck(64))
- then
- salt = false
- end
- end
- if(soy and salt)
- then
- turtle.select(4)
- if(turtle.getItemCount(4) >= 1)
- then
- if(not turtle.dropDown())
- then
- space = false
- end
- end
- if(space)
- then
- turtle.craft()
- else
- print("No more space")
- end
- else
- if(soy)
- then
- print("No Salt")
- else
- print("No Soy")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement