Skip to content

Instantly share code, notes, and snippets.

View Kramin42's full-sized avatar

Cameron Dykstra Kramin42

View GitHub Profile
@Kramin42
Kramin42 / datboi
Last active June 7, 2016 04:15 — forked from anonymous/datboi
Ben and Cam's CC API
-- helper functions edited
function waitFuel(n)
n = n or 100
while turtle.getFuelLevel()<n do
while not turtle.refuel(1) do
turtle.select(turtle.getSelectedSlot()%16+1)
end
end
end