Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function restock ()
- n = turtle.getSelectedSlot()
- if turtle.getItemSpace( n ) > 60 then
- n1 = n + 1
- turtle.select( n1 )
- turtle.placeUp()
- turtle.select( n )
- turtle.suckUp( turtle.getItemSpace( n ) )
- turtle.select( n1 )
- turtle.digUp()
- turtle.select( n )
- end
- end
- function placeRow ( n )
- for a = 1,n do
- turtle.placeDown()
- restock()
- if a < n then turtle.forward() end
- end
- end
- function nextRowLeft ()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- function nextRowRight ()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement