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 :)/>
Feel free to edit the code if you could make it work more perfectly :)/>
pastebin : http://pastebin.com/1fCmtKBU
Best regards Plazter,
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