Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This program builds a house
- slot=1
- for height = 1, 5 do
- turtle.up()
- for side = 1, 4 do
- -- begin side of house
- for size = 1, 4 do
- -- lay down wall layer 1
- turtle.placeDown()
- if turtle.getItemCount(slot)==0 then
- -- this code changes inventory slots if current slot is empty
- slot= slot+1
- turtle.select(slot)
- end
- turtle.forward()
- end
- turtle.turnLeft()
- end
- end
Add Comment
Please, Sign In to add comment