Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Building house for "..player.."...")
- turtle.select(1)
- local slot = 1
- for u = 1, 4 do
- turtle.up()
- for i = 1, 4 do
- for o = 1, 12 do
- if (u > 2 or i > 1 or o ~= 6) then
- if (turtle.getItemCount(slot) == 0) then
- slot = slot + 1
- turtle.select(slot)
- end
- turtle.placeDown()
- end
- if (u == 3 and i == 1 and o == 6) then
- turtle.turnRight()
- turtle.back()
- turtle.down()
- turtle.back()
- turtle.select(10)
- turtle.place(player.."'s\nHouse")
- turtle.down()
- turtle.forward()
- turtle.down()
- turtle.select(9)
- turtle.place()
- turtle.back()
- turtle.up()
- turtle.up()
- turtle.up()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.select(slot)
- end
- if (o ~= 12) then
- turtle.forward()
- end
- end
- turtle.turnRight()
- end
- end
- turtle.up()
- turtle.select(5)
- local slot = 5
- local a = false
- for i = 1, 12 do
- for o = 1, 12 do
- if (turtle.getItemCount(slot) == 0) then
- slot = slot + 1
- turtle.select(slot)
- end
- if (i == 6 and o == 6) then
- turtle.down()
- turtle.down()
- turtle.down()
- turtle.down()
- turtle.select(11)
- turtle.placeDown()
- for i = 12, 16 do
- turtle.select(i)
- turtle.dropDown()
- end
- turtle.up()
- turtle.up()
- turtle.up()
- turtle.up()
- turtle.select(slot)
- end
- turtle.placeDown()
- if (o ~= 12) then
- turtle.forward()
- end
- end
- if a == false then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- turtle.forward()
- if a == false then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- a = not a
- end
- turtle.forward()
- repeat
- until turtle.down() == false
Advertisement
Add Comment
Please, Sign In to add comment