Im making a mod that tracks kills of a certain mob and I created a screen overlay to display the value (not necessarily relevant)
I want the values to be saved when the game is closed.
I want to do this by creating and using a .dat file.
how would I get the values from the file and how would I save the file?