Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tempSlot = 3
- function checkItem()
- if turtle.getItemCount(2) == 0 then
- turtle.select(tempSlot)
- turtle.transferTo(2)
- turtle.select(2)
- tempSlot = tempSlot + 1
- end
- end
- 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()
- turtle.select(2)
- local i = 1
- local j = 1
- while i <= 4 do
- j = 1
- while j <= wallsize-1 do
- turtle.back()
- turtle.place()
- checkItem()
- j = j + 1
- checkFuel()
- end
- i = i + 1
- checkItem()
- turtle.turnRight()
- end
Add Comment
Please, Sign In to add comment