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

Cobble Farm Help

Started by gotan333, 14 August 2013 - 04:27 AM
gotan333 #1
Posted 14 August 2013 - 06:27 AM
Title: Cobble Farm Help

hey im very new to this lua thing
ive made a cobble farm program but i would like it to do more like refuel and output to a moniter and or stuff
(Question: do i need the turtle to turn around to place stuff into a chest?)
this is what i have so far:
while true do
		if turtle.detect() then
		turtle.dig()
		end
itemcount = turtle.getItemCount (1)
		if itemcount == 64 then
				turtle.turnLeft()
				turtle.turnLeft()
				for i=1,2 do
				turtle.select(i)
				turtle.drop()
				end
		turtle.select(1)
		turtle.turnRight()
		turtle.turnRight()
		end
end
Lyqyd #2
Posted 14 August 2013 - 08:50 PM
Split into new topic.

You won't need to refuel to just dig and turn. You don't even need to turn if you put the chest below the turtle. Here's the cobble generation program I usually use:


while true do
  turtle.dig()
  turtle.dropDown()
  sleep(1)
end