Posted 30 March 2012 - 06:35 PM
I got a sugestion from Wolvan to create a program that builds a 3x3 thingy that has a ladder in the middle like this
And as a bonus the layout of the slots looks exactly the same.. gewd 4 sempl mynds :o/>/>
AXA A=Anything.. even air if u want to save blocks or keep it simple
ALA L=Ladder
SAA S=Startpoint.. it faces north according to this program X= Any block that a ladder can hold on to..
Here's the code
ENJOY!!!
Plz gimme props if you use this.. AND if you think this could be easier.. plz .. critisism is DEMANDED.. lol jk.. it would still be nice though..
heres a pic
And as a bonus the layout of the slots looks exactly the same.. gewd 4 sempl mynds :o/>/>
AXA A=Anything.. even air if u want to save blocks or keep it simple
ALA L=Ladder
SAA S=Startpoint.. it faces north according to this program X= Any block that a ladder can hold on to..
Here's the code
Spoiler
Vliekkie's ladder tower builder V1.0term.clear()
term.setCursorPos(1,1)
print("This program builds a ladder on a flat 3x3 surface surounded by a shell in the following format at a height of ur choosing.")
print("Press any button to continue")
os.pullEvent(key)
term.clear()
term.setCursorPos(1,1)
print("use the following format and fill your slots. A,S = your own Block choice. X= Ladder suportable block L=ladder and S=startpoint")
term.setCursorPos(1,6)
print("AXA")
print("ALA")
print("SAA")
print("How high do you want to go?")
h=tonumber(read())
x=0
while x<h do
x=x+1
turtle.up()
if turtle.getItemCount(7)>0 then
turtle.select(7)
turtle.placeDown()
end
turtle.forward()
if turtle.getItemCount(4)>0 then
turtle.select(4)
turtle.placeDown()
end
turtle.forward()
if turtle.getItemCount(1)>0 then
turtle.select(1)
turtle.placeDown()
end
turtle.turnRight()
turtle.forward()
turtle.turnRight()
if turtle.getItemCount(2)>0 then
turtle.select(2)
turtle.placeDown()
end
turtle.forward()
turtle.forward()
if turtle.getItemCount(8)>0 then
turtle.select(8)
turtle.placeDown()
end
turtle.turnLeft()
turtle.turnLeft()
turtle.forward()
if turtle.getItemCount(5)>0 then
turtle.select(5)
turtle.placeDown()
end
turtle.turnLeft()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
if turtle.getItemCount(9)>0 then
turtle.select(9)
turtle.placeDown()
end
turtle.forward()
if turtle.getItemCount(6)>0 then
turtle.select(6)
turtle.placeDown()
end
turtle.forward()
if turtle.getItemCount(3)>0 then
turtle.select(3)
turtle.placeDown()
end
turtle.turnLeft()
turtle.forward()
turtle.forward()
turtle.turnLeft()
turtle.forward()
turtle.forward()
turtle.turnLeft()
turtle.turnLeft()
end
turtle.back()
y=2
while y<h do
turtle.down()
end
ENJOY!!!
Plz gimme props if you use this.. AND if you think this could be easier.. plz .. critisism is DEMANDED.. lol jk.. it would still be nice though..
heres a pic