Posted 04 January 2013 - 05:19 PM
Exactly what the turtle does after you tell him to go 10 blocks:
1.goes up 10 blocks slowly, placing no blocks on his way.
2.Continuously selects different inventory slots even though he already has blocks in slot 1.
3.goes down 1 block (I know that part of the code is wrong and i know how to fix it :P/>.)
4.Gives no error log and acts as if nothing went wrong.
1.goes up 10 blocks slowly, placing no blocks on his way.
2.Continuously selects different inventory slots even though he already has blocks in slot 1.
3.goes down 1 block (I know that part of the code is wrong and i know how to fix it :P/>.)
4.Gives no error log and acts as if nothing went wrong.
function Main()
turtle.select(1)
print("Welcome to Loki's king of the ladder minigame builder.")
print("How high do you want it?")
high = read()
print("Going "..high.." blocks up! :D/>")
for i=1, high do
turtle.select(1)
if turtle.getItemCount(1) == 0 then
turtle.select(2)
end
if turtle.getItemCount(2) == 0 then
turtle.select(3)
end
if turtle.getItemCount(3) == 0 then
turtle.select(4)
end
if turtle.getItemCount(4) == 0 then
turtle.select(5)
end
turtle.place()
turtle.up()
end
turtle.down(high)
print("Going down!")
end
Main()