Jump to content




bucket of water



  • You cannot reply to this topic
3 replies to this topic

#1 djeguer

  • Members
  • 3 posts

Posted 03 May 2015 - 01: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.

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 03 May 2015 - 05:35 PM

Moved to Ask a Pro.

#3 Kaikaku

  • Members
  • 46 posts

Posted 03 May 2015 - 06: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.

#4 djeguer

  • Members
  • 3 posts

Posted 04 May 2015 - 09:52 PM

it works perfectly
thank you much ;)





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users