Can I easily copy a terrain set from one tmx to another?

I use Terrain Sets in our project but I don’t know how to set them up. The artist that created the tilesets did that. I have two tmx files that use the same tiles and each has a terrain set for the same part of the tileset - let’s say it is BG-WALL01. However one has three brushes (sorry, don’t know the correct term) within it WALL01, WALL02, WALL03, whereas the other is missing one (it’s missing WALL01 and the other two are numbered 01 and 02 in this map). Is there a way for me to copy over the missing terrain to the set in to the second tmx?

Okay - Looks like I worked out how to create a new Terrain within the Terrain Set and I was able to create the new Terrain (which adds a new colour) and then paint on all the little coloured blocks. I used the existing ones as a guide and successfully created the new terrain.

How do you make edits to the Terrain afterwards? I can’t work out how to remove a coloured block in the editor. I did work out how to change the probability.

There is an Erase Terrain button under the terrain list that lets you erase terrain labels (the “coloured blocks”).

In case you need identical/similar terrains across tilesets in the future, I have a script that allows copy+pasting terrain labels across tiles, which also works across tilesets (though you do need to create the terrains in the destination tileset first): tiled-scripts/CopyPasteTerrains.js at main · eishiya/tiled-scripts · GitHub

Thank you so much for your help. I presumed the erase terrain button would delete the entire Terrain layer - but I see it switches your tool to be an eraser (slightly odd, inconsistent UI - but I’ve grown used to that somewhat!). And thanks for the link to the scripts.

Yeah, it’s a bit weird. I’ve suggested before to list “No Terrain/Empty” with the other terrains (since it works essentially like another terrain) instead of having it as a button, but nothing came of that.