guerre10

GreenHouse

Mar 31st, 2022
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. --This program builds a house
  2. slot=1
  3. for height = 1, 5 do
  4.   turtle.up()
  5.   for side = 1, 4 do
  6.     -- begin side of house
  7.     for size = 1, 4 do
  8.       -- lay down wall layer 1
  9.       turtle.placeDown()
  10.       if turtle.getItemCount(slot)==0 then
  11.       -- this code changes inventory slots if current slot is empty
  12.           slot= slot+1
  13.           turtle.select(slot)
  14.       end
  15.       turtle.forward()
  16.     end
  17.     turtle.turnLeft()
  18.   end
  19. end
Add Comment
Please, Sign In to add comment