I'm intrested in making it so you take a certain amount of damage whilst in the nether, unless you have a certain item in your inventory...
I know how to check if you're in the nether : dimensionId == 8
But other than that no idea. Maybe there's a variable that could be done?!