Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function line(dlina)
- for x = 1 , dlina do
- if turtle.getItemCount = 0 do
- turtle.select(2)
- end
- turtle.placeDown()
- turtle.forward()
- end
- end
- function square(dlina)
- for b = 1, 4 do
- line(dlina)
- turtle.turnRight()
- end
- end
- function cube(length,height)
- for s = 1 , height do
- square(length)
- turtle.up()
- end
- end
- cube(7,3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement