neat little script that if you remove the other stuff from a file from a tmx file and leave the ids you can convert it into clones by putting the ids left into a list (e.g. putting 3,1,2, 1,6,1, 5,1,4 into it, it would make a 3x3 square of grass with water in the middle, using this tileset)
i used tiled (mapeditor.org) to make the map tileset is in the project (use tile width 16x16)