Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Treppen
SUBMITTED BY:
Guest
DATE:
Nov. 23, 2013, 4:59 p.m.
FORMAT:
Text only
SIZE:
839 Bytes
Raw
Download
Tweet
HITS:
804
Go to comments
Report
http://cur.lv/4x9e0 (Earn Bitcoins)
i = 0
write "How many levels? : "
a = read()
a = tonumber(a)
while i < a do
turtle.digDown()
turtle.down()
while not turtle.forward() do
turtle.dig()
end
turtle.digUp()
while turtle.detectUp() do
turtle.digUp()
end
while turtle.up()==false do
turtle.digUp()
end
turtle.digUp()
turtle.down()
i = i+1
end
if not turtle.back() then
turtle.turnLeft()
turtle.turnLeft()
turtle.dig()
turtle.forward()
else
turtle.turnLeft()
turtle.turnLeft()
turtle.forward()
end
while i>0 do
turtle.up()
while not turtle.forward() do
turtle.dig()
end
i = i-1
end
turtle.turnLeft()
turtle.turnLeft()
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus