Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function placeSlot(slot, dir)
- dir = dir or ''
- turtle.select(slot)
- turtle['dig' .. dir]()
- turtle['place' .. dir]()
- end
- for i = 1,10 do
- turtle.digDown()
- if not turtle.detect() then
- placeSlot(1)
- end
- placeSlot(2, 'Up')
- turtle.down()
- if i % 2 == 0 then
- turtle.turnLeft()
- placeSlot(3)
- turtle.turnRight()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement