Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- slot = 1
- function ref()
- waiter = false
- repeat
- waiter = true
- for x = 1, 8 do
- if turtle.getItemCount(x) == 0 then
- waiter = false
- end
- end
- sleep(10)
- until waiter == true
- end
- function slotselect()
- slot = 1
- check = false
- repeat
- if turtle.getItemCount(slot) == 0 then
- slot = slot + 1
- if slot == 17 then
- slot = 1
- ref()
- check = true
- end
- else
- check = true
- end
- until check == true
- turtle.select(slot)
- end
- function Pdown()
- slotselect()
- turtle.placeDown()
- end
- function strip()
- turtle.forward()
- Pdown()
- turtle.turnRight()
- turtle.forward()
- Pdown()
- turtle.turnRight()
- turtle.forward()
- Pdown()
- turtle.forward()
- Pdown()
- turtle.turnRight()
- turtle.forward()
- Pdown()
- turtle.forward()
- Pdown()
- turtle.turnRight()
- turtle.forward()
- Pdown()
- turtle.forward()
- Pdown()
- turtle.back()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- Pdown()
- end
- function mover()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.down()
- turtle.down()
- end
- function singlePad()
- strip()
- turtle.up()
- strip()
- turtle.up()
- Pdown()
- end
- function quarter()
- singlePad()
- mover()
- turtle.turnRight()
- singlePad()
- mover()
- turtle.turnRight()
- singlePad()
- mover()
- turtle.turnLeft()
- end
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- for x = 1, 4 do
- quarter()
- end
- turtle.back()
- turtle.back()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.down()
- turtle.down()
- turtle.forward()
- turtle.turnLeft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement