How can I make a trigger for a level change only for a specific tag?

Hello, Right now I am working on a puzzle game and want to know how I can make it so a level change can occur to a specific tag (Like a block to change a level) and I have some experience with Java and C# and all I want to know is how to implement this kind of trigger?

A combination of OnTriggerEnter and CompareTag will do it.

void OnTriggerEnter (Collider collider) {

    if (collider.CompareTag ("MyTag")) {
        //Change your level here.
    }

}

Thanks this works perfectly for the game I’m working on