Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local stepsCompleted = 0
- local fuel = turtle.getFuelLevel()
- if os.getComputerLabel() ~= "derp" then os.setComputerLabel("derp") end
- local function clear() --clears the terminal
- term.clear()
- term.setCursorPos(1,1)
- print(fuel)
- if fuel == "unlimited" then
- print("No fuel needed! Let's work...")
- elseif fuel == 0
- then turtle.refuel()
- end
- end
- local function circles()
- turtle.forward()
- turtle.turnRight()
- end
- clear()
- print("Starting loop!")
- for i = 1, 4 do
- circles()
- stepsCompleted = stepsCompleted + 1
- print(stepsCompleted)
- end
Add Comment
Please, Sign In to add comment