The int i and int j are the tile location. U can do things like
if(tile.type == ItemID.Anvils) return false;
if(Main.player[Main.myPlayer].position.X < i) return false;
and all kinds of trickery like that.
Personally I use it to prevent my house tiles from getting accidentally blown up when someone forgets they got stickybombs equipped
Edit: not to rush or anything, but i've kinda hit a roadblock in my modding.
i need some item related stuff, namely saving and loading (for GlobalItem). i would also like to make prefixes/suffixes, but the main thing i need is save/load.
also this is additional but i want to be able to
Code:
if (tile.inActive())
{
Wiring.ReActive(i, j);
}
else
{
Wiring.DeActive(i, j);
}
but i can't since its private