Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ClearScreen()
- term.clear()
- term.setCursorPos(1,1)
- end
- function CheckFuel()
- while turtle.getFuelLevel() < 10 do
- ClearScreen()
- print("Out of fuel!")
- end
- end
- function CheckInv()
- for x = 1,16 do
- itemCount = itemCount + turtle.getItemCount(x)
- end
- while itemCount < 8 do
- ClearScreen()
- print("Out of blocks!")
- end
- end
- local cycles = 0
- print("How long do you want it to run??")
- cycles = read()
- for i = 0, cycles do
- CheckFuel()
- CheckInv()
- turtle.forward()
- turtle.turnRight()
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.up()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.turnLeft()
- turtle.placeUp()
- turtle.down()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement