Skip to content

TileMutatorWorker_GenericSpawner

juanosarg edited this page May 30, 2026 · 1 revision

<- Back

TileMutatorWorker_GenericSpawner allows you to add a worker to a tile mutator that spawns scattered individual items

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 Animals' "bumbledrone nests" tile mutator:

<workerClass>VEF.Maps.TileMutatorWorker_GenericSpawner</workerClass>

And then:

<modExtensions>
	<li Class="VEF.Maps.TileMutatorExtension">
		<thingToSpawn>AB_BumbledroneHive</thingToSpawn>
		<thingToSpawnAmount>3~4</thingToSpawnAmount>
	</li>
</modExtensions>

Clone this wiki locally