Skip to content

TileMutatorWorker_GenericKCSGSpawner

juanosarg edited this page May 30, 2026 · 1 revision

<- Back

TileMutatorWorker_GenericKCSGSpawner allows you to add a worker to a tile mutator that spawns structures created through our KCSG 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 + Alpha Genes' "derelict biolab" tile mutator:

<workerClass>VEF.Maps.TileMutatorWorker_GenericKCSGSpawner</workerClass>

And then:

<modExtensions>
	<li Class="VEF.Maps.TileMutatorExtension">
		<KCSGStructuresToSpawn>
			<li>AG_AbandonedBiotechLabAlpha</li>
			<li>AG_AbandonedBiotechLabBeta</li>
			<li>AG_AbandonedBiotechLabGamma</li>
			<li>AG_AbandonedBiotechLabDelta</li>
			<li>AG_AbandonedBiotechLabEpsilon</li>
			<li>AG_AbandonedBiotechLabZeta</li>
			<li>AG_AbandonedBiotechLabEta</li>
			<li>AG_AbandonedBiotechLabTheta</li>
			<li>AG_AbandonedBiotechLabIota</li>
			<li>AG_AbandonedBiotechLabKappa</li>
			<li>AG_AbandonedBiotechLabLambda</li>
			<li>AG_AbandonedBiotechLabMu</li>
			<li>AG_AbandonedBiotechLabNu</li>
		</KCSGStructuresToSpawn>
		<KCSGStructuresToSpawnAmount>1~1</KCSGStructuresToSpawnAmount>
		<minSeparationBetweenKCSGStructures>10</minSeparationBetweenKCSGStructures>
	</li>
</modExtensions>

Clone this wiki locally