»» Subscribe: bit.ly/XInXt8 ««
In this tutorial, I cover the basics of the mining turtle for the beginner. We walk through how to program the mining turtle to dig a 3 X 1 branch mine and a 3 x 3 tunnel.
Mining Turtle Programs: www.mediafire.c...
The Basics: 0:15
The Branch Program: 2:52
The 3 x 3 Tunnel: 11:54
It's a Dancing Machine! 16:27
ComputerCraft Turtle Wiki: computercraft.i...
Turtle API: computercraft.i...)
I am using the Feed the Beast mod manager and the Mindcrack mod pack.
Download Minecraft: minecraft.net/
Download Feed the Beast: feed-the-beast....
Intro and Outro Song: Frost Waltz
Dance Music: One-eyed Maestro
Kevin MacLeod is licensed under a CC Attribution 3.0.
incompetech.com...
-Branch
function digIt()
while turtle.detect() do
turtle.dig()
os.sleep(0.5)
end
turtle.forward()
while turtle.detectDown() or turtle.detectUp() do
turtle.digUp()
turtle.digDown()
end
end
function placeTorch()
turtle.down()
turtle.back()
turtle.select(16)
turtle.placeUp()
turtle.forward()
turtle.up()
end
local run = 0
local j = 0
local k = 0
term.write("Branch length: ")
run = read()
for i = 1, run do
k = i - 1
j = k % 10
if j == 1 then
placeTorch()
end
digIt()
end
turtle.down()
turtle.turnRight()
turtle.turnRight()
turtle.select(16)
turtle.placeUp()
for i = 1, run do
turtle.forward()
end
-3Tunnel
function digIt()
while turtle.detect() do
turtle.dig()
os.sleep(0.5)
end
turtle.forward()
while turtle.detectDown() or turtle.detectUp() do
turtle.digUp()
turtle.digDown()
end
end
local run = 0
term.write("Tunnel length: ")
run = read()
for i = 1, run do
digIt()
turtle.turnLeft()
digIt()
turtle.turnRight()
turtle.turnRight()
turtle.forward()
digIt()
turtle.back()
turtle.turnLeft()
end
-3Tunnel with Torches
function digIt()
while turtle.detect() do
turtle.dig()
os.sleep(0.5)
end
turtle.forward()
while turtle.detectDown() or turtle.detectUp() do
turtle.digUp()
turtle.digDown()
end
end
function placeTorch()
turtle.select(16)
turtle.placeUp()
end
local run = 0
term.write("Tunnel length: ")
run = read()
for i = 1, run do
k = i - 1
j = k % 4
digIt()
turtle.turnLeft()
digIt()
turtle.turnRight()
turtle.turnRight()
turtle.forward()
digIt()
turtle.back()
turtle.turnLeft()
if i == 2 or j == 1 then
turtle.back()
turtle.turnRight()
turtle.forward()
placeTorch()
turtle.back()
turtle.back()
placeTorch()
turtle.forward()
turtle.turnLeft()
turtle.forward()
end
end
30 сен 2024