Posted 15 April 2013 - 08:11 AM
Hello
I want to ask a help from programers to write a mining program of my dreams :D/>
I want restart my world and begin mining with turtle that can place torches refuel (taking coal and torches from ender chest ) and send back items with ender chest and can mining like this pattern
and I have started some programing (coping what I like from other programs :D/> )
Sorry for my bad English :)/>
I want to ask a help from programers to write a mining program of my dreams :D/>
I want restart my world and begin mining with turtle that can place torches refuel (taking coal and torches from ender chest ) and send back items with ender chest and can mining like this pattern
and I have started some programing (coping what I like from other programs :D/> )
function refuel()
local fuellevel = turtle.getFuelLevel()
if fuellevel<500 then
turtle.digUp()
turtle.select(2)
turtle.placeUp()
turtle.suck()
turtle.refuel()
turtle.dig()
turtle.select(1)
print(fuellevel)
end
end
function chest()
local item = turtle.getItemCount(16)
if item>0 then
turtle.digUp()
turtle.select(1)
turtle.placeUp()
for i = 4, 16 do
turtle.select(i)
if not turtle.drop() then
for i = 4, 16 do
turtle.select(i)
turtle.drop()
end
end
end
end
end
function torches()
local item = turtle.getItemCount(3)
if item<5 then
turtle.digUp()
turtle.select(2)
turtle.placeUp()
turtle.select(3)
turtle.suck()
turtle.placeDown()
turtle.select(3)
turtle.drop()
turtle.digUp()
turtle.select(1)
else
turtle.select(3)
turtle.placeDown()
turtle.select(1)
end
end
function gravel()
while not turtle.forward() do
if turtle.detect() then
turtle.dig()
else
turtle.attack()
end
end
end
Sorry for my bad English :)/>