Posted March 27, 201510 yr I want to provide a simple config file for my mod. It will include roughly a couple booleans. I tried looking at tutorials online and they all seem outdated. But I tried it anyways and it didn't work (I'm basing success on whether there is a config button in the mods menu). Here is what I have so far: Main mod file @EventHandler public void preInit(FMLPreInitializationEvent event) { RecipesPlusItems.init(); RecipesPlusItems.register(); Configuration config = new Configuration(event.getSuggestedConfigurationFile()); config.load(); allowEmeraldTools = config.getBoolean("allowEmeraldTools", Configuration.CATEGORY_GENERAL, true, "Allows Minecraft to use included emerald tools"); config.save(); } I feel like I am missing something...
March 27, 201510 yr Don't base it off of the config button in the main menu, that involves other classes to get that to appear, check your config folder and it should have a file for your configuration.
March 27, 201510 yr Author Where would the config folder be for testing in eclipse? Somewhere in the eclipse folder?
March 27, 201510 yr Where would the config folder be for testing in eclipse? Somewhere in the eclipse folder? /eclipse/config 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.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.