Probably there is need to implement a way to append existing spawn file (if user wants to do it of course) or generate a new spawn xml file, in case of CLI. I will add this to my todos list.For generated map in game this is not an issue, I've tested it with your script (i had very bad map generator before) and it worked just fine. No idea how hard it would be for .otbm map