Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- length = 10
- function place2(side)
- if turtle.getItemCount(turtle.getSelectedSlot()) == 0 then
- turtle.select(turtle.getSelectedSlot()+1)
- end
- if side == "f" then
- turtle.place()
- elseif side == "u" then
- turtle.placeUp()
- else
- turtle.placeDown()
- end
- end
- function forward()
- if turtle.getFuelLevel() == 0 then
- curslot = turtle.getSelectedSlot()
- turtle.select(15)
- turtle.refuel()
- turtle.select(curslot)
- end
- while not turtle.forward() do
- turtle.dig()
- end
- end
- i = 0
- ii = 0
- while ii < length do
- turtle.turnLeft()
- place2("f")
- turtle.turnRight()
- turtle.turnRight()
- i = 0
- while i < 11 do
- print("At gen no "..ii.." building part "..i.." with "..turtle.getFuelLevel().."/"..turtle.getFuelLimit().." fuel left")
- place2()
- if i == 8 then
- curslot = turtle.getSelectedSlot()
- turtle.select(16)
- place2("u")
- comp = peripheral.wrap("top")
- comp.turnOn()
- --peripheral.call("top", "shell.run('pastebin get 7jn3bJzA startup')")
- --comp.reboot()
- turtle.select(curslot)
- end
- forward()
- i = i + 1
- end
- place2("f")
- place2()
- i = 0
- turtle.turnRight()
- turtle.turnRight()
- while i < 11 do
- turtle.forward()
- i = i + 1
- end
- turtle.turnRight()
- forward()
- ii = ii + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment