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

Share Code Between Multiply Turtles

Started by Acuena, 07 August 2013 - 01:39 PM
Acuena #1
Posted 07 August 2013 - 03:39 PM
Hi!

I now have 3 Mining turtles. And I would want to be able to share code between them. Right now I am copying the code from the first turtle to the others evry time I change something. Is there a way to make all turtles share the same code?
Hopefully without rednet, floppies or computer's.

Like having one folder on my hardrive where I have all the code and all turtle use that folder to get their code.
Kingdaro #2
Posted 07 August 2013 - 03:53 PM
Try using an unpacked resource pack, with the script in .minecraft/resourcepacks/YourPackName/assets/computercraft/lua/rom/programs/turtle.

There's a resource pack guide in the Prorgams section.
TheOddByte #3
Posted 07 August 2013 - 03:56 PM
If you're in creative mode you could set the label of the turtle to what you want it to be

label set <name>
Then you make sure that you don't have any other turtles in your inventory and then you break the turtle that you labeled, Then you break it and pick it up and you can place it multiple times and all the turtles will have the same IDs thus the same programs.
And everytime you create/edit etc. a program on one of those it will change on the others aswell.

That's my only clue on how todo it, Hope it was useful ;)/>
Acuena #4
Posted 07 August 2013 - 05:03 PM
Try using an unpacked resource pack, with the script in .minecraft/resourcepacks/YourPackName/assets/computercraft/lua/rom/programs/turtle.

There's a resource pack guide in the Prorgams section.

What do you mean by "YourPackName"?
Forgot to mention that I play in Singleplayer.
Kingdaro #5
Posted 07 August 2013 - 05:20 PM
"YourPackName" can be literally anything.

Once the files are in that directory, they can be accessed by any turtle.