Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- local width, length = 5, 5
- local args = {...}
- local width = 1
- local length = 1
- local currentSlot = 1
- local paramsMet = false
- if (#args == 2) then
- width = tonumber(args[1])
- length = tonumber(args[2])
- paramsMet = true
- else
- print('Invalid size, please input width and length as X,Z')
- end
- if (paramsMet == true) then
- print ('Building bridge with length ' .. length .. '!')
- turtle.select(currentSlot)
- for i = 1, length do
- turtle.forward()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement