Just a little tip for when you're changing a lot of IDs or adding blocks and items into a fresh mod.
Try using this just before you load your config. It'll empty the file so any broken IDs are removed.
if (mod_name.devMode == true){
config.load();
config.save();
}
Then all you need to do is add a boolean to your main mod file and set it to true when you're developing, make sure to change it to false when you release it though. Otherwise people won't be able to use the config file as each time they start the game it'll empty all of their settings out of it.
Try using this just before you load your config. It'll empty the file so any broken IDs are removed.
if (mod_name.devMode == true){ config.load(); config.save(); }Then all you need to do is add a boolean to your main mod file and set it to true when you're developing, make sure to change it to false when you release it though. Otherwise people won't be able to use the config file as each time they start the game it'll empty all of their settings out of it.
Here's a working example in my mod MinePlus.
Configuration config = new Configuration(new File("config/mineplus.cfg")); if (MinePlus.devMode == true){ config.load(); config.save(); } config.load(); bronzeIngotID = config.get("Items", "Bronze Ingot", 5000).getInt(); config.save();