Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function select()
- while not turtle.select(slot) do
- slot = slot + 1
- end
- end
- function placeDown()
- select()
- turtle.placeDown()
- end
- function move()
- if forward then
- turtle.forward()
- posX = posX + 1
- end
- if backward then
- turtle.backward()
- posX = posX - 1
- end
- end
- function newline()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- if forward () then
- forward = false
- backward = true
- end
- if backward () then
- forward = ture
- backeward = false
- end
- end
- slot = 2
- forward = true
- blockcount = 0
- print("Starting to work")
- turtle.select(1)
- if turtle.refuel() then
- turtle.forward()
- turtle.turnRight()
- for posZ = 0, 22, 1 do
- for posY = 0, 22, 1 do
- blockcount = blockcount + 1
- if blockcount ~= 5 then
- placeDown()
- end
- if blockcount == 5 then
- blockcount = 1
- end
- move()
- end
- newline()
- end
- print("Done!")
- else
- print("No Fuel found")
- end
Advertisement
Add Comment
Please, Sign In to add comment