Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("longueur : ")
- print("hauteur : ")
- local longueur = io.read()
- local largeur = io.read()
- local k=1
- function itemcount()
- while turtle.getItemCount(k) < 1 do
- k = k + 1
- turtle.select(k)
- end
- end
- for j = 1, hauteur, 1 do
- for i = 1, longueur-1, 1 do
- itemcount()
- turtle.placeDown()
- turtle.forward()
- if turtle.detectDown() then
- else
- turtle.placeDown()
- end
- end
- turtle.up()
- turtle.turnRight()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement