:3
This commit is contained in:
parent
491112768c
commit
68ec37f994
66 changed files with 6591 additions and 10096 deletions
34
computer/26/garbidge/roof.lua
Normal file
34
computer/26/garbidge/roof.lua
Normal file
|
@ -0,0 +1,34 @@
|
|||
width = 5
|
||||
length = 23
|
||||
|
||||
turtle.select(1)
|
||||
|
||||
tLeft = true
|
||||
|
||||
function turn()
|
||||
if tLeft then
|
||||
turtle.turnLeft()
|
||||
else
|
||||
turtle.turnRight()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function step()
|
||||
turtle.placeUp()
|
||||
turtle.forward()
|
||||
if turtle.getItemCount() == 0 then
|
||||
turtle.select(turtle.getSelectedSlot()+1)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
for row = 1, width do
|
||||
for i = 1, length do
|
||||
step()
|
||||
end
|
||||
turn()
|
||||
step()
|
||||
turn()
|
||||
tLeft = not tLeft
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue