Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function line(x) do
- for i=1,x do
- turtle.forward()
- turtle.placeDown()
- end
- end
- --GLAVNI PROGRAM
- local tArgs = {...}
- local a = 0
- local b = 0
- a = tonumber(tArgs[1])
- b = tonumber(tArgs[2])
- for i=1,b do
- line(a)
- if i%2==1 then
- turtle.turnRight()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.turnLeft()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement