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

Persistent Data in Turtle Upgrade

Started by faubiguy, 01 November 2012 - 08:27 PM
faubiguy #1
Posted 01 November 2012 - 09:27 PM
I'm making a turtle upgrade peripheral, and I need to have data that isn't reset when the world is reloaded. What should I do to do this? Should I save it to a file, and reload it when the peripheral is created?
Tiin57 #2
Posted 02 November 2012 - 05:02 AM
File saving would be the best option in my opinion
Xfel #3
Posted 03 November 2012 - 03:01 AM
The best option would be a readFromNBT/writeToNBT method in the turtle upgrade class. However, as the devs don't change anything on the apis anymore, I don't expect that to happen.