Jump to content

Configure GameType


Recommended Posts

Hi everyone !


I need to create a new GameType for my mod, and I don't know how to do this :S

Here's is what I've done so far :



public void initConfig(FMLPreInitializationEvent event)
NEWGAME= EnumHelperClient.addGameType("NEWGAME", 3, "new gameType");


How can I configure it ? do I have use configurePlayerCapabilities from GameType.class ? or create a new class ?

Link to comment
Share on other sites

config = event.getSuggestedConfigurationFile();

whateverval = config.get("MyCategory","MyNamedValue").getInt();

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.


Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.


DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.