Please generate some example code for the Valheim mod I described.