Computercraft program question

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

platium1337

New Member
Jul 29, 2019
13
0
0
I want to make it so the program in my melee turtle runs all the time, when i log back in to my world and it runs all ways that i dont need to open the turtle thingy to get it running...

Here is the program that i am using:
http://pastebin.com/9fT8rnSi
 

Peppe

New Member
Jul 29, 2019
836
0
1
You can also edit startup and put this line in:

shell.run("cc_turtle_fight")


Or whatever the program is named on the turtle. Then on startup it should run your program. Assuming you have labeled the turtle as well.
 

Peppe

New Member
Jul 29, 2019
836
0
1
hold ' control t ' for a few seconds to force a program to stop when it is running.
 

Fuzzlewhumper

New Member
Jul 29, 2019
500
0
0
1. label your turtle
type: label set MyTurtleIsCalledThis
This will do two things for you. Your turtle can be picked up and moved and it wont forget what programs you taught it
It will also preserve its fuel level when you pick up your turtle.

2. type: edit startup
You're now editing a program called startup. The turtle runs startup whenever the chuck it is in is loaded.
type: shell.run("TheNameOfTheProgramYouWantTheTurtleToRunWhenItIsLoaded")
hit the ctrl key
save the program
hit the ctrl key and exit

You can now run the program by typing startup or the name of the program you want it to run.

It will now run each time the turtle's chunk is loaded. Hope that helps.

PS: Instead of 2 being a shell.run command to run your program you could just type your program into startup and have the same result.
 

Bigglesworth

New Member
Jul 29, 2019
1,072
0
1
You really need to read their forums and FAQ and guides. THEN ask questions. Else youre going to be lost as hell