This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
djeguer's profile picture

bucket of water

Started by djeguer, 03 May 2015 - 12:22 PM
djeguer #1
Posted 03 May 2015 - 02:22 PM
Hello everyone.
I am looking for a way to power:
1) fill a bucket with a turtle in sources under it and then put it in a chest full bucket front of her.
2) take the empty bucket in the trunk and repeat the first step.

Thank you to you for your help.
Lyqyd #2
Posted 03 May 2015 - 06:35 PM
Moved to Ask a Pro.
Kaikaku #3
Posted 03 May 2015 - 07:00 PM
So far as I understand you try to fill water buckets with a turtle and put them into a chest in front of the turtle.
Try something like this:

Preparation:
Put an empty bucket in slot 1.
There should be only the bucket in the chest.


turtle.select(1)
while true do
  turtle.placeDown() -- fill bucket
  turtle.drop() -- put it in chest
  os.sleep(2) -- sleep for 2 sec
  turtle.suck() -- get bucket back
end

Probably you have to adapt the sleep time, to make sure the bucket is empty when the turtle gets it back.
djeguer #4
Posted 04 May 2015 - 10:52 PM
it works perfectly
thank you much ;)/>