Well, if we're talking accessories: The
UpdateAccessory function on ModItems is called every tick (60 times a second), so it'd work to check in there.
It'd be a good idea to store something (like a boolean or string) when traveling to another dimension. Something like:
Code:
public string dimensionName; // Possible values: "Earth" & "Moon"
This you probably want to store on your ModPlayer. Then in your accessory you can get the ModPlayer and just check that value:
Code:
if(myModPlayerVariable.dimensionName == "Moon")
{
// Blablablablabla
}
Would something like that work for you?