tModLoader ON BOSS DEATH NEED HELP

Talus

The Destroyer
So, I made a boss and I can't figure out how to make a box of ore spawn around the death point when it dies, could any of you modders tell me how?
 
Maybe you could take a look around the WoF code, as there’s a similar thing with it. (I mean the box of demonite/crimtane bricks)
 
use this
WorldGen.PlaceTile(i, j, type)
i is the x corrdinate of the tile you want to place
j is the y coordinate
type is the id of the tile

Tile coordinates are 1/16 that of the coorinates that entities like npcs use. So if you divide your boss's position by 16 you should get the i and j you need.
 
also don't forget about KillTile(i, j) inside of this box, because it can contain blocks as well
 
Back
Top Bottom