Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function init()
- while turtle.detect() do
- turtle.turnRight()
- end
- end
- function main()
- mainLoop = true
- while mainLoop do
- init()
- if turtle.getItemCount(workSlot)>0 and not(turtle.compareTo(fullBucketSlot)) then
- turtle.place()
- end
- turtle.turnRight()
- turtle.turnRight()
- turtle.drop()
- sleep(5)
- turtle.suck()
- end
- end
- fullBucketSlot = 1
- emptyBucketSlot = 2
- workSlot = 3
- turtle.select(workSlot)
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement