tModLoader How do you make a boss summon only in a certain biome with a summoning item?

Reelscoobey

Terrarian
I'm trying to make a boss summon item only allow you to summon the boss in the underworld. I've searched everywhere for a tutorial on how to do this, and I even checked Example Mod. None of my code is working. Any help would be great. (this might be the wrong place to put this)
 
Update: I found out how
 
do u mind sending the code for it or where u found it? i also cant find it anywhere
 
I need this too, where did you find the fix you needed?
 
Boss Summon Item

So in this code, in the CanUseItem method, you can check player.zoneUnderworld to have it usable only in the underworld, or whatever criteria you'd like.
 
Back
Top Bottom