This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
plazter's profile picture

10x10 mining turtle house builder.

Started by plazter, 09 March 2013 - 04:08 AM
plazter #1
Posted 09 March 2013 - 05:08 AM
Hello every 1 out there.
So i've made a little turtle program that can build a 10x10 house for you!, if you are like me you are really lazy at some points, so i've made the program.


what the program does is pretty simple as you can see in the title :b


For the turtle to build you need to place
slot 1 - 4 : The desired material blocks
slot 5 - 6 the material to the roof - this is so that the turtle has enough, im kinda noob at programming :)/>

slot 15: is the fuel for your turtle :)/>
and finally in slot 16: is the glass for roof to put down :)/> (requires about 16 pieces :)/>


-- Program made by Plazter
for i = 1,4 do
turtle.select(15)
turtle.refuel()
turtle.up()
-- Wall 1
turtle.select(1)
for i = 1,9 do
turtle.placeDown()
turtle.forward()
end
-- Wall 2
turtle.select(2)
turtle.turnRight()
turtle.placeDown()
turtle.forward()

for i = 1,8 do
  turtle.placeDown()
  turtle.forward()
end

-- Wall 3
turtle.select(3)
turtle.turnRight()
turtle.placeDown()
turtle.forward()



for i = 1,8 do
  turtle.placeDown()
  turtle.forward()
end

-- Wall 4
turtle.select(4)
turtle.turnRight()
turtle.placeDown()
turtle.forward()



for i = 1,8 do
  turtle.placeDown()
  turtle.forward()
end
turtle.turnRight()
end
-- roof
turtle.up()
turtle.select(5)
-- 1
for i = 1,10 do
turtle.placeDown()
turtle.forward()
end
-- 2
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.forward()
for i = 1,10 do
turtle.placeDown()
turtle.forward()
end
--3
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
turtle.forward()
for i = 1,10 do
turtle.placeDown()
turtle.forward()
end
--4
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.forward()
for i = 1,10 do
turtle.placeDown()
turtle.forward()
end
--5

turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
turtle.forward()
for i = 1,10 do
turtle.placeDown()
turtle.forward()
end
--6
turtle.select(6)
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.forward()
for i = 1,10 do
turtle.placeDown()
turtle.forward()
end
--7
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
turtle.forward()
for i = 1,10 do
turtle.placeDown()
turtle.forward()
end

--8
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.forward()
for i = 1,10 do
turtle.placeDown()
turtle.forward()
end
--9

turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
turtle.forward()
for i = 1,10 do
turtle.placeDown()
turtle.forward()
end

--10
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.forward()
for i = 1,10 do
turtle.placeDown()
turtle.forward()
end
-- glass
turtle.turnRight()
turtle.select(16)
turtle.forward()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.turnRight()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.turnRight()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.turnRight()
turtle.forward()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.digDown()
turtle.placeDown()
print("Succesfull job")
-- NED FRA TAGET TIL DåA5A598REN
turtle.turnRight()
for i = 1,4 do
turtle.forward()
end
for i = 1,5 do
turtle.down()
end

turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.dig()
turtle.up()
turtle.dig()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
turtle.dig()
turtle.down()
turtle.dig()

Feel free to edit the code if you could make it work more perfectly :)/>

pastebin : http://pastebin.com/1fCmtKBU

Best regards Plazter,
Edited by
Lyqyd #2
Posted 09 March 2013 - 01:58 PM
Split into new topic. You have a sufficient number of posts that you are able to start your own topics now, by the way.
3LiD #3
Posted 09 March 2013 - 02:09 PM
This has been posted in the wrong forum… This is a program so it will need to be posted in the programs forum.
AfterLifeLochie #4
Posted 10 March 2013 - 12:40 AM
This has been posted in the wrong forum… This is a program so it will need to be posted in the programs forum.
There's a report button for a reason. Use it.