Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkFuel()
- if turtle.getFuelLevel() < 100 then
- turtle.select(1)
- turtle.refuel()
- trutle.select(2)
- end
- end
- print("Type Wall Size...")
- local wallsize = tonumber(read())
- checkFuel()
- local i = 1
- local j = 1
- while i <= 4 do
- j = 1
- while j <= wallsize-1 do
- turtle.dig()
- turtle.forward()
- j = j + 1
- checkFuel()
- end
- i = i + 1
- turtle.turnLeft()
- end
Add Comment
Please, Sign In to add comment