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

Is there any way to load code onto command computers in survival?

Started by unclenorton, 17 May 2019 - 11:16 AM
unclenorton #1
Posted 17 May 2019 - 01:16 PM
I want to be able to run code on a newly placed command computer in survival mode. I can give myself any item with any id, basically /give command but without data tags. Maybe it is possible to /give a command computer with a certain computer id so that it has the same code as another computer with the same id?
Purple #2
Posted 19 May 2019 - 11:43 AM
If you don't mind editing the save files each computer gets a folder with its ID in the save file on your PC. And each program you writ eon that computer gets a text file in that folder. So you just have to open one save file, copy the file and paste it into your new one. Or you could do what I do and write all your code outside of computercraft and paste it into a resource pack so that all your code is available on each computer.
Luca_S #3
Posted 20 May 2019 - 07:31 PM
IIRC you can give yourself a computer with a certain damage value to have it have a specific ID, however I'm not sure if that is still possible and if that falls under data tags.(I know in older Versions of MC you could do /give <player> <id>:<damage>)