Check the player's game mode

Started by TheAvIGOLD on Sat, 06/11/2016 - 18:16

Topic category: Help with MCreator modding

Last seen on 16:07, 26. Feb 2017
Joined Jun 2016
User points:


  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Check the player's game mode
Sat, 06/11/2016 - 18:16

Hey guys!

When creating an event I need to condition that the player is in survival mode, but MCreator does not have such conditions. How can I do this?

I'm try this: if (player.getGameMode() != GameMode.SURVIVAL), but it gives me an error :(