I have written my first own programm for the mining turtle, which should just mine! :D/>
It should mine above and down its self and infront. In the second and third slot comes cobble and dirt, which should never get filled.
The first slot is for coal.
When I start my programm it says "bios:330 [String :"Mining"]:1:"
pls help me :)/>
function mining()
for a = 0, 100, 1 do
for b = 0, 100, 1 do
turtle.dig()
turtle.forward()
turtle.detectUp() do
turtle.digUp()
sleep(0.25)
end
turtle.detectDown() do
turtle.digDown()
sleep(0.25)
end
fuel = turtle.getFuleLevel()
if(fuel < 400) then
turtle.select(1)
turtle.refuel()
end
turtle.select(2)
turtle.drop(turtle.getItemCount() - 1)
turtle.select(3)
turtle.drop(turtle.getItemCount() - 1)
end
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
for b = 0, 100, 1 do
turtle.dig()
turtle.forward()
turtle.detectUp() do
turtle.digUp()
sleep(0.25)
end
turtle.detectDown() do
turtle.digDown()
sleep(0.25)
end
if(fuel < 400) then
turtle.select(1)
turtle.refuel()
end
turtle.select(2)
turtle.drop(turtle.getItemCount() - 1)
turtle.select(3)
turtle.drop(turtle.getItemCount() - 1)
end
turtle.turnRight()
turtle.forward()
turtle.turnRight()
end
end
function statusBildschirm()
term.setCursorPos( 1, 3)
term.clearLine()
fuellevel = turtle.getFuelLevel()
print("Fuel-Level: " .. fuellevel)
end