I want to quit the game, if 2 values are higher than 3. I want to put in in here:
if(player.getWorldTranslation().y > 3){
if(player.getWorldTranslation().z > 3){
}
I guess its in the documentation, but I still couldĀ“nt find any answer after 10minutes searching. Thanks for helping!
Here's a link to quitting the game. You could also use
System.exit(int)
. Either way it works.