print("Standard-Direwolf20-House"); if turtle.getItemCount(1) + turtle.getItemCount(2) + turtle.getItemCount(3) + turtle.getItemCount(4) < 238 or turtle.getItemCount(5) < 45 or turtle.getItemCount(6) < 64 or turtle.getItemCount(7) < 18 or turtle.getItemCount(8) < 36 or turtle.getItemCount(9) < 5 then print("Instructions:"); os.sleep(2); print("Place this Turtle in front of your future entrance, It will move one block forward before start building."); os.sleep(10); print("Make sure there are no Hills"); print("Holes are no problem."); os.sleep(6); print("I need following buildingmaterials:"); os.sleep(3); print("1-4: 238 Blocks for the Outerwall"); os.sleep(3); print(" 5: 45 Blocks for the Roofparts"); os.sleep(3); print(" 6: 64 Blocks for the Basement"); os.sleep(3); print(" 7: 18 Blocks for the Basement"); os.sleep(3); print(" 8: 36 Glassblocks or so"); os.sleep(3); print(" 9: 5 Torches"); os.sleep(10); print("If not every Condition is met then"); print("it will show this message again."); else print("Begin building..."); print("Do not come into my way!!!"); turtle.up(); turtle.forward(); turtle.turnRight(); print("build Outerwalls..."); cnt = 0; while (cnt < 2) do cnt = cnt + 1; count = 0; while (count < 5) do count = count + 1; while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnLeft(); count = 0; while (count < 10) do count = count + 1; while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnLeft(); count = 0; while (count < 10) do count = count + 1; while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnLeft(); count = 0; while (count < 10) do count = count + 1; while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnLeft(); count = 0; while (count < 4) do count = count + 1; while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.forward(); turtle.digUp(); turtle.up(); end turtle.dig(); turtle.forward(); turtle.dig(); turtle.forward(); turtle.dig(); turtle.forward(); turtle.dig(); turtle.forward(); turtle.dig(); turtle.forward(); turtle.turnLeft(); turtle.dig(); cnt = 0; while (cnt < 4) do cnt = cnt + 1; count = 0; while (count < 10) do count = count + 1; while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnLeft(); count = 0; while (count < 10) do count = count + 1; while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnLeft(); count = 0; while (count < 10) do count = count + 1; while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnLeft(); count = 0; while (count < 10) do count = count + 1; while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnLeft(); turtle.digUp(); turtle.up(); end print("place Torches..."); turtle.select(9); turtle.forward(); turtle.forward(); turtle.turnLeft(); turtle.forward(); turtle.forward(); turtle.turnRight(); turtle.down(); turtle.down(); turtle.down(); turtle.down(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnRight(); turtle.place(); turtle.turnLeft(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnLeft(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnRight(); turtle.place(); turtle.turnLeft(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnLeft(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnRight(); turtle.place(); turtle.turnLeft(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnLeft(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnRight(); turtle.place(); turtle.select(6); turtle.down(); turtle.down(); turtle.down(); turtle.forward(); turtle.forward(); turtle.turnRight(); turtle.turnRight(); turtle.digDown(); turtle.placeDown(); turtle.forward(); turtle.turnRight(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnLeft(); print("build Basement..."); count = 0; while (count < 9) do count = count + 1; turtle.digDown(); turtle.placeDown(); turtle.forward(); end turtle.turnLeft(); turtle.forward(); turtle.turnLeft(); count = 0; while (count < 9) do count = count + 1; turtle.digDown(); turtle.placeDown(); turtle.forward(); end turtle.turnRight(); turtle.forward(); turtle.turnRight(); count = 0; while (count < 9) do count = count + 1; turtle.digDown(); turtle.placeDown(); turtle.forward(); end turtle.turnLeft(); turtle.forward(); turtle.turnLeft(); count = 0; while (count < 9) do count = count + 1; turtle.digDown(); turtle.placeDown(); turtle.forward(); end turtle.turnRight(); turtle.forward(); turtle.turnRight(); count = 0; while (count < 9) do count = count + 1; turtle.digDown(); turtle.placeDown(); turtle.forward(); end turtle.turnLeft(); turtle.forward(); turtle.turnLeft(); count = 0; while (count < 9) do count = count + 1; turtle.digDown(); turtle.placeDown(); turtle.forward(); end turtle.turnRight(); turtle.forward(); turtle.turnRight(); count = 0; while (count < 9) do count = count + 1; turtle.digDown(); turtle.placeDown(); turtle.forward(); end turtle.select(7); turtle.turnLeft(); turtle.forward(); turtle.turnLeft(); count = 0; while (count < 9) do count = count + 1; turtle.digDown(); turtle.placeDown(); turtle.forward(); end turtle.turnRight(); turtle.forward(); turtle.turnRight(); count = 0; while (count < 9) do count = count + 1; turtle.digDown(); turtle.placeDown(); turtle.forward(); end turtle.turnRight(); turtle.up(); turtle.up(); turtle.up(); turtle.up(); turtle.up(); turtle.up(); print("build Roofparts..."); turtle.select(5); count = 0; while (count < 8) do count = count + 1; turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnRight(); count = 0; while (count < 8) do count = count + 1; turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnRight(); count = 0; while (count < 8) do count = count + 1; turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnRight(); count = 0; while (count < 8) do count = count + 1; turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnRight(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnRight(); count = 0; while (count < 7) do count = count + 1; turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.forward(); turtle.turnRight(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnRight(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.turnRight(); count = 0; while (count < 7) do count = count + 1; turtle.forward(); turtle.digDown(); turtle.placeDown(); end print("build Glassroof..."); turtle.select(8); turtle.turnRight(); cnt = 0; while (cnt < 4) do cnt = cnt + 1; count = 0; while (count < 3) do count = count + 1; turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnRight(); turtle.forward(); turtle.turnRight(); count = 0; while (count < 3) do count = count + 1; turtle.digDown(); turtle.placeDown(); turtle.forward(); end turtle.turnLeft(); turtle.forward(); turtle.turnLeft(); count = 0; while (count < 3) do count = count + 1; turtle.forward(); turtle.digDown(); turtle.placeDown(); end turtle.turnRight(); turtle.forward(); end turtle.turnRight(); turtle.forward(); turtle.forward(); turtle.forward(); print("place Torch on Roof..."); turtle.up(); turtle.select(9); turtle.placeDown(); turtle.turnLeft(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.forward(); turtle.down(); turtle.down(); turtle.down(); turtle.down(); turtle.down(); turtle.down(); turtle.down(); turtle.select(1); print("Your Standard-Direwolf20-House"); print("is finally complete, sweet."); end os.sleep(15); print(""); print("This program is property of:"); print("GregTech Intergalactical"); print("redistribution recommended"); print("");