Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fl = turtle.getFuelLevel()
- print("Fule level: "..fl)
- if fl == 0 then
- turtle.select(1)
- turtle.refuel(1)
- print("Refuling...")
- end
- size = 9
- plat = 2 -- platform building block index
- print("Starting")
- print("moving to start")
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.back()
- turtle.back()
- turtle.back()
- turtle.back()
- turtle.back()
- print("Starting Building")
- for i = 1, size do
- print("X: "..i)
- for j = 1, size do
- print("Y: "..j)
- turtle.turnRight()
- for k = 0, j do
- turtle.forward()
- end
- turtle.digUp()
- turtle.select(plat)
- turtle.placeUp()
- for k = 0, j do
- turtle.back()
- end
- turtle.turnLeft()
- end
- turtle.forward()
- end
- print("Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement