Advertisement
Olena_Kuznietsova

first house

Dec 13th, 2024 (edited)
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. function line(dlina)
  2.     for x = 1 , dlina do
  3.         if turtle.getItemCount = 0 do
  4.             turtle.select(2)
  5.         end
  6.         turtle.placeDown()
  7.         turtle.forward()
  8.     end
  9. end
  10. function square(dlina)
  11.     for b = 1, 4 do
  12.         line(dlina)
  13.         turtle.turnRight()
  14.     end
  15. end
  16. function cube(length,height)
  17.     for s = 1 , height do
  18.         square(length)
  19.         turtle.up()
  20.        
  21.     end
  22. end
  23. cube(7,3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement