Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- distancia maxima hacia delante
- longMaxLado = 10
- -- distancia maxima hacia la derecha
- anchMaxLado = 7
- anchoPasillo = 3
- turtle.select(1)
- for lado = 1, 4*anchoPasillo, 1 do
- if lado%2 == 0 then
- longMax = anchMaxLado
- else
- longMax = longMaxLado
- end
- if lado < 4 then
- longLado = longMax
- else
- longLado = longMax - ((lado - 4)/2) - 1
- end
- for x = 1, longLado, 1 do
- while (turtle.getItemCount() == 0) and (turtle.getSelectedSlot() < 16) do
- turtle.select(turtle.getSelectedSlot() + 1)
- end
- if (turtle.getItemCount() == 0) and (turtle.getSelectedSlot() == 16) then
- break
- end
- turtle.placeDown()
- if x < longLado then
- turtle.forward()
- end
- end
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement