Skip to content

TileMutatorWorker_TerrainSwapper

juanosarg edited this page May 30, 2026 · 1 revision

<- Back

TileMutatorWorker_TerrainSwapper allows you to add a worker to a tile mutator that swaps an existing terrain in the map for a different one

If you don't also define a TileMutatorExtension this worker does nothing and probably spews errors. TileMutatorExtension requires an optional feature to be toggled, learn how here: OptionalFeatures

How do I use this code?

Tile mutator workers are added to the <workerClass> tag of the TileMutatorDef you want to add them to.

For example, on Alpha Biomes' "oversaturated soil" tile mutator:

<workerClass>VEF.Maps.TileMutatorWorker_TerrainSwapper</workerClass>

And then:

<modExtensions>
	<li Class="VEF.Maps.TileMutatorExtension">
		<terrainToSwap>AB_FertileGrassyFlowerySoil</terrainToSwap>
		<terrainToSwapTo>AB_FertileGrassyFlowerySoil_Oversaturated</terrainToSwapTo>
	</li>
</modExtensions>

Clone this wiki locally