Data saving btools work for the next time you join the game

At the moment I am trying to script a data save that saves what you have made/moved in your game!!!
Would anyone have any ideas on how to do this?
LIke you would do !save or something.

Thanks,
Soli