Alright so, I had to mess with it. I don't know if its exactly what you were saying but thats the only way it seems to work.
This is the condition which seems to work now. Thanks for your help!
so I need to use java 15 does that mean i can only use minecraft versions 1.15 and below or how does it work? because my modpack is 1.16 is there any way for me to play with it or is it broken right now