tModLoader NPC Spawning

JonersBean

Terrarian
I am having a issue with spawning my NPC into the cavern layer, how would I solve this issue?
Code:
return SpawnCondition.CavernMonster.Chance - 0.3f;
(This is me trying to figure out how to modify @FoolsLynx code)
 
Idk, there's a method for this. So uh do know that. But maybe just try a base value. You might be literally getting a value that is 0 or less than 0, meaning: no spawning.
 
I am having a issue with spawning my NPC into the cavern layer, how would I solve this issue?
Code:
return SpawnCondition.CavernMonster.Chance - 0.3f;
(This is me trying to figure out how to modify @FoolsLynx code)
Check if player is in/under cavern later and set spawn condition if it is, else set 0f spawn chance. This is how I did that
 
Back
Top Bottom