Skip to content

TileMutatorWorker_GenericPrefabSpawner

juanosarg edited this page May 30, 2026 · 1 revision

<- Back

TileMutatorWorker_GenericPrefabSpawner allows you to add a worker to a tile mutator that spawns structures created through Odyssey's prefab system

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' "derelict archonexus" tile mutator:

<workerClass>VEF.Maps.TileMutatorWorker_GenericPrefabSpawner</workerClass>

And then:

<modExtensions>
	<li Class="VEF.Maps.TileMutatorExtension">
		<prefabsToSpawn>
			<li>AB_DerelictArchonexusAlpha</li>
			<li>AB_DerelictArchonexusBeta</li>
			<li>AB_DerelictArchonexusGamma</li>
			<li>AB_DerelictArchonexusDelta</li>
			<li>AB_DerelictArchonexusEpsilon</li>				
		</prefabsToSpawn>
		<prefabsToSpawnAmount>3~5</prefabsToSpawnAmount>
		<minSeparationBetweenPrefabs>10</minSeparationBetweenPrefabs>
	</li>
</modExtensions>

Clone this wiki locally