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

A Few Simple Programs

Started by panicmore, 26 February 2012 - 02:19 PM
panicmore #1
Posted 26 February 2012 - 03:19 PM
Genesis
this simple but useful program lets you light caves that have been previously built by robots warning please wait for the tunnel to be finished before sending this in.

answer = "yes"
print ("--genesis--")
print ("--alpha v1.0--")
sleep(1)
print ("--by jlllloyd--")
sleep(1)
print ("--for use with miner turtles only--")
sleep(1)
print("have you placed a light source in my top left?")
write"answer yes/no "
input = read()
if input == answer then
print ("Let there be light")
while turtle.forward() do
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.select(1)
turtle.digDown()
turtle.placeDown()
end
else
print "Please Place Them Then"
end


Rover

This simple alpha software allows your robot to head in a straight line over almost all terrain (steep drops look weird) it will be updated

print("---Welcome---")
sleep (1)
print("---to rover---")
sleep(1)
print("---aplha 1.0---")
sleep(1)
print("---made by jlllloyd---")
sleep(1)
print ("preparing to roam")
sleep(1)

while turtle.forward() do
  if turtle.detectDown() == false then
   turtle.down()
  end
   if turtle.detect() == true then
    turtle.up()
   end

end

Love
this completly pointless software was made as a test enjoy

print ("activating affection")
while turtle.turnLeft() do
turtle.up()
sleep(1)
turtle.down()
print ("I love you")
end

Mine
this program builds a mine in a staircase form it will place cobblestone as the floor unless you put glowstone in there to light it up.

while turtle.detectDown() do
print("Digging down!")
turtle.digDown()
turtle.digUp()
turtle.down()
turtle.digDown()
turtle.select(1)
turtle.placeDown()
print("Going down!")
turtle.down()
print("Digging forward!")
turtle.dig()
print("Going forward!")
turtle.forward()
end
Help
to install these go to:C:Users<your name>AppDataRoaming.minecraftmodsComputerCraftluaromprogramsturtle
and place them in here without a file extension to do this copy and paste them into note pad or similar and save it without the .txt and enjoy your loving robots

Guys check out my video tutorials of the methods involved in making a program this will be redone so its louder http://m.youtube.com/index?desktop_uri=%2F&gl=GB#/watch?v=LfnRpzVL0hs
Wojowu #2
Posted 26 February 2012 - 04:10 PM
Code for Rover is exactly same as for Genesis
panicmore #3
Posted 26 February 2012 - 04:13 PM
Oh sorry will change tht now