i = 3
j = i
s = 1
turtle.up()
turtle.select(s)
for n = 1, i do
for n = 1, 4 do
for n = 1, j * 2 do
if turtle.getItemCount() == 0 then
s = s + 1
turtle.select(s)
end
turtle.placeDown()
turtle.forward()
end
turtle.turnLeft()
end
j = j - 1
turtle.turnRight()
turtle.back()
turtle.turnLeft()
turtle.forward()
turtle.up()
end
turtle.placeDown()
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme