Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local InfLoop = x
- function NoArbolIzq()
- turtle.select(16)
- if turtle.compare()==true then
- turtle.back()
- turtle.turnRight()
- end
- end
- function ArbolIzq()
- turtle.turnLeft()
- turtle.forward()
- turtle.select(2)
- NoArbolIzq()
- turtle.select(2)
- if turtle.compare()==true then
- turtle.dig()
- turtle.forward()
- while turtle.compareUp()==true do
- turtle.digUp()
- turtle.up()
- end
- if turtle.compareUp()==false then
- repeat turtle.down()
- until turtle.compareDown()==true
- if turtle.compareDown()==true then
- turtle.digDown()
- turtle.down()
- turtle.back()
- turtle.select(1)
- turtle.place()
- turtle.back()
- turtle.turnRight()
- turtle.up()
- end
- end
- end
- function NoArbolDer()
- turtle.select(16)
- if turtle.compare()==true then
- turtle.back()
- turtle.turnLeft()
- end
- end
- end
- function ArbolDer()
- turtle.turnRight()
- turtle.forward()
- turtle.select(2)
- NoArbolDer()
- turtle.select(2)
- if turtle.compare()==true then
- turtle.dig()
- turtle.forward()
- while turtle.compareUp()==true do
- turtle.digUp()
- turtle.up()
- end
- if turtle.compareUp()==false then
- repeat turtle.down()
- until turtle.compareDown()==true
- if turtle.compareDown()==true then
- turtle.digDown()
- turtle.down()
- turtle.back()
- turtle.select(1)
- turtle.place()
- turtle.back()
- turtle.turnLeft()
- turtle.up()
- end
- end
- end
- end
- while InfLoop==x do
- ArbolIzq()
- ArbolDer()
- for i = 1, 4 do
- turtle.forward()
- end
- ArbolIzq()
- ArbolDer()
- for i = 1, 4 do
- turtle.forward()
- end
- ArbolIzq()
- ArbolDer()
- for i = 1, 4 do
- turtle.forward()
- end
- ArbolIzq()
- ArbolDer()
- turtle.select(15)
- if turtle.compare()==true then
- turtle.down()
- for i = 1, 12 do
- turtle.back()
- end
- turtle.select(14)
- if turtle.compareDown()==true then
- turtle.select(2)
- if turtle.getItemCount(2) > 15 then
- turtle.dropDown(15)
- turtle.up()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement