Need : FTB modpack - Mining turtle

Create file Name: " 0farmbuild "
Where: mods\computercraft.zip\lua\rom\programs\turtle\

youtube link: https://www.youtube....h?v=Qx_qRvqNHkE



------------------------
--  Create By Daru137 --
--					--
--	 farm: 12x26	--
--					--
-- Slot 1  = 3 coal   --
-- slot 2  = 64 block --
-- slot 3  = 13 block --
-- slot 15 = water	--
-- slot 16 = water	--
------------------------

local function menet()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
end
local function water()
	turtle.digDown()
	turtle.select(15)
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.select(16)
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.select(15)
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.back()
os.sleep(0.8)
	turtle.placeDown()
	turtle.forward()
end
x = 1
while true do x = 1
	turtle.select(1)
	turtle.refuel()
	turtle.refuel()
	turtle.select(2)
	turtle.turnLeft()
menet()
menet()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.turnRight()
menet()
menet()
menet()
menet()
menet()
	turtle.turnRight()
menet()
menet()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.turnRight()
menet()
menet()
menet()
	turtle.select(3)
menet()
menet()
	turtle.turnRight()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.turnRight()
	turtle.forward()
water()
	turtle.turnLeft()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.turnLeft()
water()
	turtle.turnLeft()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.turnRight()
	turtle.forward()
	turtle.up()
	turtle.turnRight()
	turtle.turnRight()
	turtle.select(3)
	turtle.placeDown()
x = X -1
end


Next program:
Create file Name: " 0farm "
Where: mods\computercraft.zip\lua\rom\programs\turtle\

Need : farming Turtle


---------------------------
--   Create By Daru137   --
--					   --
--	 farmbuild-es	  --
-- építés utáni farmolás --
--					   --
-- kapaDroid megtankolva --
--  /refuel paranccsal   --
--					   --
--	 Slot 1 = seed	 --
---------------------------

local function menet()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
	turtle.digDown()
	turtle.placeDown()
	turtle.forward()
end
x = 1
while true do x = 1
	turtle.select(1)
menet()
	turtle.turnLeft()
	turtle.forward()
	turtle.turnLeft()
menet()
	turtle.turnRight()
	turtle.forward()
	turtle.forward()
	turtle.turnRight()
menet()
	turtle.turnLeft()
	turtle.forward()
	turtle.turnLeft()
menet()
	turtle.turnRight()
	turtle.forward()
	turtle.turnRight()
menet()
	turtle.turnLeft()
	turtle.forward()
	turtle.turnLeft()
menet()
	turtle.turnRight()
	turtle.forward()
	turtle.forward()
	turtle.turnRight()
menet()
	turtle.turnLeft()
	turtle.forward()
	turtle.turnLeft()
menet()
	turtle.turnLeft()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.forward()
	turtle.turnLeft()
x = X -1
end



Mining program:

Need : FTB modpack - Mining turtle

Create file Name: " 2x2c "
Where: mods\computercraft.zip\lua\rom\programs\turtle\


slot = 2

coal = 1
chest = 2
blocks = 3

turtle.select(2)

local args = {...}

local dist = tonumber(args[1])

local direct = tostring(args[2])

local function setSlot(s)
  slot = s
  turtle.select(s)
end

local function checkFuel()
  curSlot = slot
  if turtle.getFuelLevel() < 10 then
	setSlot(1)
	turtle.refuel()
	setSlot(curSlot)
  end
end

local function digForward()
  checkFuel()
  while not turtle.forward() do
	turtle.dig()
	turtle.digUp()
  end
end

local function turnAround(dir)
  if dir == "left" then
	turtle.turnLeft()
		digForward()
		turtle.turnLeft()
  end
  if dir == "right" then
	turtle.turnRight()
		digForward()
		turtle.turnRight()
  end
end

while turtle.getItemCount(chest) > 0 do
		for i=1,dist do
		  digForward()
		end
		turnAround(direct)
		for i=1,dist do
		  digForward()
		end
		turtle.dig()
		turtle.select(chest)
		turtle.place()
		for slot=3,16,1 do
	  turtle.select(slot)
	  while turtle.getItemCount(slot) > 0 do
		turtle.drop()
	  end
	end
		if direct == "left" then
   turtle.turnRight()
end
if direct == "right" then
   turtle.turnLeft()
end
		for i=1,3,1 do
		  digForward()
		end
		if direct == "left" then
	  turtle.turnRight()
	end
	if direct == "right" then
	  turtle.turnLeft()
	end
end