Posted March 4, 201312 yr Hello, I'm trying to make a configuration file and for Blocks it already works, but i did the same for items and this doesn't work. I'm using different classes for my items and configs and load it under PreInitialize in my mod_File Config: Configuration config = new Configuration(event.getSuggestedConfigurationFile()); config.load(); eggbreadID = config.getItem("Eggbread", 4000).getInt(); config.save(); ItemFile: eggbread = new Food(FoodCraftConfig.eggbreadID, 7, false).setIconCoord(9,0).setItemName("Eggroll"); public static Item eggbread; the items appears ingame, but have a different ID.
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.