Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function turnright()
- turtle.turnRight()
- moveforward()
- turtle.turnRight()
- end
- function turnleft()
- turtle.turnLeft()
- moveforward()
- turtle.turnLeft()
- end
- function checkblockcount()
- if turtle.getItemCount(curslot) == 0 then
- selnextslot()
- end
- end
- function selnextslot()
- curslot = curslot + 1
- if curslot > 16 then
- print("Out of blocks, terminating")
- error()
- end
- turtle.select(curslot)
- end
- function place()
- checkblockcount()
- turtle.placeDown()
- turtle.forward()
- end
- function returntostart()
- if orient == true then
- turtle.turnRight()
- for i = 1, width - 1 do
- moveforward()
- end
- turtle.turnRight()
- moveback()
- elseif orient == false then
- turtle.turnLeft()
- for i = 1, width - 1 do
- moveforward()
- end
- turtle.turnRight()
- for i = 1, length do
- turtle.back()
- end
- end
- end
- ----------
- for i=1, 3 do
- place()
- end
- turnright()
- for i=1, 3 do
- place()
- end
- turnleft()
- for i=1, 3 do
- place()
- end
- returntostart()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement