Setting a modded boss as defeated?

What the title says, is there a way to set a modded boss as "defeated" within the game's flags? I thought of TEdit but that doesn't work for modded worlds, so I was curious if there was a different way to do it.
Was this page helpful?