Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Untitled
SUBMITTED BY:
Guest
DATE:
Dec. 17, 2013, 4:38 a.m.
FORMAT:
Text only
SIZE:
832 Bytes
Raw
Download
Tweet
HITS:
3088
Go to comments
Report
StairsTop = 0
StairsBottom = 0
Levels = StairsTop - StairsBottom
L = 0
print("So you Want to dig a tunnel?")
print("You have come to the right place.")
print("Please enter your starting level:")
StairsTop = io.read()
print("Please enter what level you would like to stop at:")
StairsBottom = io.read()
function Level
if turtle.detectDown() = true then
turtle.digDown()
turtle.down()
end
if turtle.detect() = true then
turle.dig()
turtle.forward()
end
if turtle.detect() = true then
turle.dig
end
L = L + 1
end
function Fuel
turtle.getFuelLevel()
if turtle.getFuelLevel() <= 5 then
turtle.select(1)
turtle.refuel()
end
end
Fuel()
for Levels > L do
Level()
Fuel()
end
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus